feat : config
This commit is contained in:
26
app/Controller/Admin/ConfigController.php
Normal file
26
app/Controller/Admin/ConfigController.php
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user