feat : spu

This commit is contained in:
2025-03-25 15:54:34 +08:00
parent e25e6cc94b
commit 377f780ab5
12 changed files with 619 additions and 41 deletions

View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Controller\AbstractController;
use App\Middleware\Api\JwtAuthMiddleware;
use App\Service\Api\Driver\GetSiteListService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
#[Controller(prefix: 'api/driver')]
#[Middlewares([
JwtAuthMiddleware::class,
])]
class DriverController extends AbstractController
{
#[RequestMapping(path: 'get_site_list',methods: 'GET')]
#[Scene(scene: 'get_site_list')]
public function get_site_list()
{
return (new GetSiteListService)->handle();
}
}