feat : rank
This commit is contained in:
@@ -10,6 +10,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: 'api/chef')]
|
||||
#[Middlewares([
|
||||
@@ -19,6 +21,8 @@ class ChefController
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[RequestMapping(path: "index", methods: "GET")]
|
||||
#[Scene(scene: "index")]
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace App\Controller\Api;
|
||||
use App\Controller\AbstractController;
|
||||
use App\Service\Api\Good\AddStapleFoodInfoService;
|
||||
use App\Service\Api\Good\MealListService;
|
||||
use App\Service\Api\Good\OptionalInfoService;
|
||||
use App\Service\Api\Good\OptionalListService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
@@ -46,4 +47,15 @@ class GoodController extends AbstractController
|
||||
{
|
||||
return (new AddStapleFoodInfoService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[RequestMapping(path: 'optional_info',methods: 'GET')]
|
||||
public function optionalInfo()
|
||||
{
|
||||
return (new OptionalInfoService)->handle();
|
||||
}
|
||||
}
|
||||
@@ -134,6 +134,8 @@ class OrderController extends AbstractController
|
||||
/**
|
||||
* 评论
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[RequestMapping(path: 'evaluation',methods: 'POST')]
|
||||
#[Scene(scene: 'evaluation')]
|
||||
|
||||
Reference in New Issue
Block a user