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.
2 lines
557 B
2 lines
557 B
"use strict";const e=require("../../request/index.js"),r={addCart:t=>e.request({url:"/trade/cart/add",method:"POST",data:t,custom:{showSuccess:!0,successMsg:"已添加到购物车~"}}),updateCartCount:t=>e.request({url:"/trade/cart/update-count",method:"PUT",data:t}),updateCartSelected:t=>e.request({url:"/trade/cart/update-selected",method:"PUT",data:t}),deleteCart:t=>e.request({url:"/trade/cart/delete",method:"DELETE",params:{ids:t}}),getCartList:()=>e.request({url:"/trade/cart/list",method:"GET",custom:{showLoading:!1,auth:!0}})};exports.CartApi=r;
|