feat : catering

This commit is contained in:
2025-03-13 15:08:26 +08:00
parent d461790c2f
commit 3aa241350c
10 changed files with 530 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ namespace App\Controller\Admin;
use App\Middleware\Admin\JwtAuthMiddleware;
use App\Service\Admin\Catering\Meal\CycleListService as MealCycleListService;
use App\Service\Admin\Catering\Option\CompleteListService;
use App\Service\Admin\Catering\Option\CompletePrintService;
use App\Service\Admin\Catering\Option\CycleListService as OptionCycleListService;
use App\Service\Admin\Catering\Option\CateringService as OptionCateringService;
use App\Service\Admin\Catering\Option\PrintService;
@@ -61,6 +63,7 @@ class CateringController
}
/**
* 自选配餐
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
@@ -72,19 +75,55 @@ class CateringController
return (new OptionCateringService)->handle();
}
/**
* 自选是否打印
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "option/check_is_print", methods: "POST")]
#[Scene(scene: "option_check_is_print")]
public function optionCheckPrint()
{
return (new PrintService)->check();
return (new PrintService)->checkPrint();
}
#[RequestMapping(path: "option/catering", methods: "GET")]
#[Scene(scene: "option_catering")]
/**
* 打印机/喷码机列表
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "option/print_list", methods: "GET")]
#[Scene(scene: "option_print_list")]
public function optionPrintList()
{
return (new PrintService)->handle();
}
/**
* 自选补打印列表
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "option/complete_list", methods: "GET")]
#[Scene(scene: "option_complete_list")]
public function completeList()
{
return (new CompleteListService)->handle();
}
/**
* 自选补打印
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "option/complete_print", methods: "GET")]
#[Scene(scene: "option_complete_print")]
public function completePrint()
{
return (new CompletePrintService)->handle();
}
}