feat : statement
This commit is contained in:
@@ -6,6 +6,7 @@ namespace App\Controller\Admin;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Admin\JwtAuthMiddleware;
|
||||
use App\Service\Admin\Order\FinishService;
|
||||
use App\Service\Admin\Order\OrderInfoService;
|
||||
use App\Service\Admin\Order\OrderListService;
|
||||
use App\Service\Admin\Order\RefundService;
|
||||
@@ -29,18 +30,25 @@ class OrderController extends AbstractController
|
||||
*/
|
||||
#[RequestMapping(path: "list", methods: "GET")]
|
||||
#[Scene(scene: "list")]
|
||||
public function list()
|
||||
public function list(): array
|
||||
{
|
||||
return (new OrderListService())->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: "info", methods: "GET")]
|
||||
#[Scene(scene: "info")]
|
||||
public function info()
|
||||
public function info(): array
|
||||
{
|
||||
return (new OrderInfoService())->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: "finish", methods: "GET")]
|
||||
#[Scene(scene: "finish")]
|
||||
public function finish(): array
|
||||
{
|
||||
return (new FinishService())->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
|
||||
Reference in New Issue
Block a user