You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
771 B

  1. <?php
  2. namespace App\Controller;
  3. use App\Constants\ErrorCode;
  4. use App\Exception\BusinessException;
  5. use App\Service\OrderListServiceInterface;
  6. use http\Client\Curl\User;
  7. use Hyperf\Di\Annotation\Inject;
  8. class OrderListController extends BaseController
  9. {
  10. /**
  11. * @Inject
  12. * @var OrderListServiceInterface
  13. */
  14. protected $orderListService;
  15. /**
  16. * 店铺订单列表
  17. */
  18. public function storeOrderList()
  19. {
  20. $res = $this->orderListService->storeOrderList($this->request->all());
  21. return $this->success($res);
  22. }
  23. /**
  24. * 用户订单列表
  25. */
  26. public function userOrderList()
  27. {
  28. $res = $this->orderListService->userOrderList($this->request->all());
  29. return $this->success($res);
  30. }
  31. }