普兆健康管家前端代码仓库
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.

42 lines
693 B

  1. // 购物车相关接口
  2. const api = {
  3. // 购物车-列表查询
  4. getCartList: {
  5. url: '/cart/list',
  6. method: 'GET',
  7. auth: true,
  8. showLoading : true,
  9. },
  10. // 购物车-添加
  11. addCart: {
  12. url: '/cart/add',
  13. method: 'POST',
  14. auth: true,
  15. limit : 500,
  16. showLoading : true,
  17. },
  18. // 购物车-批量添加
  19. addCartBatch: {
  20. url: '/cart/addList',
  21. method: 'POST',
  22. auth: true,
  23. showLoading : true,
  24. },
  25. // 购物车-批量删除
  26. deleteCartBatch: {
  27. url: '/cart/deleteBatch',
  28. method: 'DELETE',
  29. auth: true,
  30. showLoading: true,
  31. },
  32. // 购物车-编辑购物车
  33. editCart: {
  34. url: '/cart/edit',
  35. method: 'PUT',
  36. auth: true,
  37. showLoading : true,
  38. },
  39. }
  40. export default api