feat : banner
This commit is contained in:
@@ -6,11 +6,13 @@ namespace App\Controller\Api;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\IndexService;
|
||||
use App\Service\Api\System\CityListService;
|
||||
use App\Service\Api\System\MiniWxConfigService;
|
||||
use App\Service\Api\System\SiteListService;
|
||||
use App\Service\Api\System\SystemConfigService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middleware;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\Validation\Annotation\Scene;
|
||||
@@ -46,4 +48,12 @@ class SystemController extends AbstractController
|
||||
{
|
||||
return (new SystemConfigService)->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: 'index',methods: 'GET')]
|
||||
#[Scene(scene: 'index')]
|
||||
#[Middleware(JwtAuthMiddleware::class)]
|
||||
public function index()
|
||||
{
|
||||
return (new IndexService)->handle();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user