feat : order list
This commit is contained in:
@@ -6,6 +6,10 @@ namespace App\Controller\Api;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\Evaluation\EvaluationService;
|
||||
use App\Service\Api\Evaluation\ViewService as EvaluationViewService;
|
||||
use App\Service\Api\Evaluation\InfoService as EvaluationInfoService;
|
||||
use App\Service\Api\Evaluation\ListService as EvaluationListService;
|
||||
use App\Service\Api\Order\CancelOrderService;
|
||||
use App\Service\Api\Order\CheckCartService;
|
||||
use App\Service\Api\Order\CheckStockService;
|
||||
@@ -126,4 +130,48 @@ class OrderController extends AbstractController
|
||||
{
|
||||
return (new OrderInfoService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 评论
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'evaluation',methods: 'POST')]
|
||||
#[Scene(scene: 'evaluation')]
|
||||
public function evaluation()
|
||||
{
|
||||
return (new EvaluationService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 评论视图 (商品信息)
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'evaluation_view',methods: 'get')]
|
||||
#[Scene(scene: 'evaluation_view')]
|
||||
public function evaluationView()
|
||||
{
|
||||
return (new EvaluationViewService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 评论详情
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'evaluation_info',methods: 'get')]
|
||||
#[Scene(scene: 'evaluation_info')]
|
||||
public function evaluationInfo()
|
||||
{
|
||||
return (new EvaluationInfoService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 我的评论
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'evaluation_list',methods: 'get')]
|
||||
#[Scene(scene: 'evaluation_list')]
|
||||
public function evaluationList()
|
||||
{
|
||||
return (new EvaluationListService)->handle();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user