feat : caterer
This commit is contained in:
53
app/Controller/Admin/CatererController.php
Normal file
53
app/Controller/Admin/CatererController.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controller\Admin;
|
||||
|
||||
use App\Middleware\Admin\JwtAuthMiddleware;
|
||||
use App\Service\Admin\System\CatererService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\Validation\Annotation\Scene;
|
||||
|
||||
#[Controller(prefix: "admin/caterer")]
|
||||
#[Middlewares([
|
||||
JwtAuthMiddleware::class,
|
||||
])]
|
||||
class CatererController
|
||||
{
|
||||
/**
|
||||
* 配餐列表
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: "caterer_list", methods: "GET")]
|
||||
#[Scene(scene: "caterer_list")]
|
||||
public function catererList()
|
||||
{
|
||||
//todo
|
||||
return (new CatererService)->catererList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 配餐详细列表
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: "caterer_detail_list", methods: "GET")]
|
||||
#[Scene(scene: "caterer_detail_list")]
|
||||
public function catererDetailList()
|
||||
{
|
||||
return (new CatererService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置配餐数据
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: "setting_caterer", methods: "POST")]
|
||||
#[Scene(scene: "setting_caterer")]
|
||||
public function settingCaterer()
|
||||
{
|
||||
return (new CatererService)->edit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user