1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\controller\api\pc;
- use app\Request;
- use app\services\pc\CartServices;
- class CartController
- {
- protected $services;
- public function __construct(CartServices $services)
- {
- $this->services = $services;
- }
-
- public function getCartList(Request $request)
- {
- $uid = $request->uid();
- $data = $this->services->getCartList((int)$uid);
- return app('json')->successful($data);
- }
- }
|