🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 请求库存 ~~~[api] get:/goods/${goodsId}/queryGoodsInventory <<< success { "retCode": 0, "retMsg": "success", "responseInfo": 20 } <<< error { "retCode": !0, "retMsg": "errMsg" } ~~~ #### 添加到购物车 ~~~[api] post:/cart/addGoodsCart userId=3191#用户id(int) goods_properties_id=red:m#属性组合id(string) property=[{}]#属性信息(array) price=1#现价(double) goodsPrice=2#原价(double) goodsId=1234_1#商品id(string) goodsName=xxxx#商品名称(string) imgPath=xxxx#图片地址(string) storeId=1#店铺id(int) count=10#购买数量 shipPrice=0#运费(double) totalPrice=1#总价(double) status=1#商品状态(int) <<< success { "retCode": 0, "retMsg": "success", "responseInfo": { buyCount, totalPrice } } <<< error { "retCode": !0, "retMsg": "errMsg" } ~~~