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.
36 lines
770 B
36 lines
770 B
<?php
|
|
|
|
namespace App\Controller\v3;
|
|
|
|
use App\Controller\BaseController;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
use App\Service\v3\Interfaces\ShopCartServiceInterface;
|
|
|
|
class ShopCartController extends BaseController
|
|
{
|
|
/**
|
|
* @Inject
|
|
* @var ShopCartServiceInterface
|
|
*/
|
|
protected $shopCartService;
|
|
public function detail()
|
|
{
|
|
//获取购物车商品信息
|
|
$res['store_goood_lists'] = $this->shopCartService->detail();
|
|
//获取购物车失效商品信息
|
|
$res['store_invalid_goood_lists'] = $this->shopCartService->undo();
|
|
//计算购物车价格
|
|
$res['total'] = '820.00';
|
|
return $this->success($res);
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
|
|
}
|
|
|
|
public function undo()
|
|
{
|
|
|
|
}
|
|
}
|