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.

CartController.php 553B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\controller\api\pc;
  3. use app\Request;
  4. use app\services\pc\CartServices;
  5. class CartController
  6. {
  7. protected $services;
  8. public function __construct(CartServices $services)
  9. {
  10. $this->services = $services;
  11. }
  12. /**
  13. * 获取用户购物车列表
  14. * @param Request $request
  15. * @return mixed
  16. */
  17. public function getCartList(Request $request)
  18. {
  19. $uid = $request->uid();
  20. $data = $this->services->getCartList((int)$uid);
  21. return app('json')->successful($data);
  22. }
  23. }