handle(); } /** * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ #[RequestMapping(path: 'confirmation_order',methods: 'post')] #[Scene(scene: 'confirmation_order')] public function confirmationOrder() { return (new ConfirmationOrderService)->handle(); } /** * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ #[RequestMapping(path: 'place_order',methods: 'post')] #[Scene(scene: 'place_order')] public function placeOrder() { return (new PlaceOrderService)->handle(); } /** * 取消订单 type 1|2 good|balance * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ #[RequestMapping(path: 'cancel_order',methods: 'post')] #[Scene(scene: 'cancel_order')] public function cancelOrder() { return (new CancelOrderService)->handle(); } /** * 订单退款(同理) * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ #[RequestMapping(path: 'refund_order',methods: 'post')] #[Scene(scene: 'refund_order')] public function refundOrder() { return (new RefundOrderService)->handle(); } }