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.

31 lines
685 B

  1. <?php
  2. namespace App\Controller\v3;
  3. use App\Controller\BaseController;
  4. use Hyperf\Di\Annotation\Inject;
  5. use App\Service\v3\Interfaces\UpdateShopCartServiceInterface;
  6. class UpdateShopCartController extends BaseController
  7. {
  8. /**
  9. * @Inject
  10. * @var UpdateShopCartServiceInterface
  11. */
  12. protected $updateShopCarService;
  13. public function update()
  14. {
  15. $res = $this->updateShopCarService->update($this->request->all());
  16. return $this->success($res);
  17. }
  18. public function check()
  19. {
  20. }
  21. public function delete()
  22. {
  23. $res = $this->updateShopCarService->delete($this->request->all());
  24. return $this->success($res);
  25. }
  26. }