feat : site
This commit is contained in:
25
app/Controller/Api/SystemController.php
Normal file
25
app/Controller/Api/SystemController.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controller\Api;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\System\SiteListService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\Validation\Annotation\Scene;
|
||||
|
||||
|
||||
#[Controller(prefix: 'api/system')]
|
||||
class SystemController extends AbstractController
|
||||
{
|
||||
#[RequestMapping(path: 'site/search_list',methods: 'POST')]
|
||||
#[Scene(scene: 'search_list')]
|
||||
public function searchSiteList()
|
||||
{
|
||||
return (new SiteListService)->handle();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user