更改购物车项
PUT
http://localhost:8080/shopping/update
接口描述
更改购物车项, 请求体中的`items`表示购物车中的订单项(JSON字符串形式,需要前端parse解析或stringify转化),`total`为购物车总金额,`uid`为用户id。
请求参数
参数名
类型
描述
必填
uid
int
示例:1
必填
items
string
示例:"[{"id":1,"foodId":"30010002","foodName":"蓝莓麦芬","foodImage":"blueberry-muffin.jpg","price":"10.00","table":"food","count":3},{"id":1,"beverageId":"20080002","beverageName":"橘香茉吉托","beverageImage":"citrus-mint-mojito.jpg","type":1,"price":"10.00","table":"beverage","count":2},{"id":39,"beverageId":"40010001","beverageName":"星巴克?凤舞祥云综合咖啡豆","beverageImage":"south-of-the-clouds.jpg","type":2,"p...
必填
total
int
示例:100
必填
响应参数
参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:更改成功
必填
id
int
示例:2
必填
uid
int
示例:1
必填
items
string
示例:"[{"id":1,"foodId":"30010002","foodName":"蓝莓麦芬","foodImage":"blueberry-muffin.jpg","price":"10.00","table":"food","count":3},{"id":1,"beverageId":"20080002","beverageName":"橘香茉吉托","beverageImage":"citrus-mint-mojito.jpg","type":1,"price":"10.00","table":"beverage","count":2},{"id":39,"beverageId":"40010001","beverageName":"星巴克?凤舞祥云综合咖啡豆","beverageImage":"south-of-the-clouds.jpg","type":2,"p...
必填
total
string
示例:100.00
必填
status
int
示例:1
必填
createTime
string
示例:2020-11-24T21:05:22
必填
updateTime
string
示例:2020-11-24T21:05:22
必填