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.
32 lines
685 B
32 lines
685 B
<?php
|
|
|
|
namespace App\Controller\v3;
|
|
|
|
use App\Controller\BaseController;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
use App\Service\v3\Interfaces\UpdateShopCartServiceInterface;
|
|
|
|
class UpdateShopCartController extends BaseController
|
|
{
|
|
/**
|
|
* @Inject
|
|
* @var UpdateShopCartServiceInterface
|
|
*/
|
|
protected $updateShopCarService;
|
|
public function update()
|
|
{
|
|
$res = $this->updateShopCarService->update($this->request->all());
|
|
return $this->success($res);
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
|
|
}
|
|
|
|
public function delete()
|
|
{
|
|
$res = $this->updateShopCarService->delete($this->request->all());
|
|
return $this->success($res);
|
|
}
|
|
}
|