feat : catering

This commit is contained in:
2025-03-12 17:31:19 +08:00
parent 5729297bea
commit 789edb44c5
6 changed files with 19 additions and 6 deletions

View File

@@ -12,6 +12,8 @@ use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
#[Controller(prefix: "admin/catering")]
#[Middlewares([
@@ -57,8 +59,20 @@ class CateringController
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "option/catering", methods: "POST")]
#[Scene(scene: "option_catering")]
public function optionCatering()
{
return (new OptionCateringService)->handle();
}
public function checkPrint()
{
}
}