Files
hyperf_service/app/Controller/Api/SalesmanController.php
2025-04-01 15:11:04 +08:00

28 lines
717 B
PHP

<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Controller\AbstractController;
use App\Middleware\Api\JwtAuthMiddleware;
use App\Service\Api\Salesman\ForceTakePhotoService;
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 (new ForceTakePhotoService)->handle();
}
}