feat : banner

This commit is contained in:
2025-03-27 15:40:24 +08:00
parent 9a4e1dcf48
commit 1085ba14e8
4 changed files with 79 additions and 2 deletions

View File

@@ -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();
}
}