feat : catering
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user