feat : config

This commit is contained in:
2024-10-30 17:47:37 +08:00
parent d572ca9539
commit 39b5df9f0a
5 changed files with 185 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Controller\Admin;
use App\Controller\AbstractController;
use App\Service\Admin\System\ConfigService;
class ConfigController extends AbstractController
{
public function getConfigModule()
{
return (new ConfigService)->getConfigModule();
}
public function getConfigForm()
{
return (new ConfigService)->getConfigForm();
}
public function updateConfig()
{
return (new ConfigService)->handle();
}
}

View File

@@ -6,13 +6,12 @@ namespace App\Controller\Admin;
use App\Middleware\Admin\JwtAuthMiddleware;
use App\Request\Admin\EmployeeRequest;
use App\Service\Admin\EmployeeService;
use App\Service\Admin\User\EmployeeService;
use Exception;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
use Symfony\Component\HttpFoundation\JsonResponse;
#[Controller(prefix: "admin/employee")]
#[Middlewares([