<?php
declare(strict_types=1);
namespace App\Controller\Admin;
use App\Controller\BaseController;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\PostMapping;
use Hyperf\HttpServer\Annotation\Middleware;
use Hyperf\HttpServer\Annotation\Middlewares;
use App\Middleware\LoginAuthMiddleware;
use App\Middleware\AdminAuthMiddleware;
class SettingController extends BaseController
{
public function siteSet()
{
$info = $this->settingRepo->getSiteInfo();
$data = [
'info' => $info,
];
return $this->success($data);
}
public function siteSave()
{
$reqParam = $this->request->all();
$this->settingRepo->saveSettingInfo($reqParam);
return $this->success('ok');
}
}