feat : check

This commit is contained in:
2025-04-01 14:59:08 +08:00
parent 44e773305f
commit 6bf2dc8a17
5 changed files with 108 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Controller\AbstractController;
use App\Middleware\Api\JwtAuthMiddleware;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
#[Controller(prefix: 'api/salesman')]
#[Middlewares([
JwtAuthMiddleware::class,
])]
class SalesmanController extends AbstractController
{
#[RequestMapping(path: 'take_photo',methods: 'POST')]
#[Scene(scene: 'take_photo')]
public function forceTakePhoto()
{
return $response->raw('Hello Hyperf!');
}
}