修改商品会员折扣(多规格)
POST
/goods/operation/update-member-price
最后修改时间:2024-08-14 08:45:39
请求参数
Body 参数multipart/form-data
goods_id
integer
要修改的商品ID
示例值:
7295
type
integer
必需
0不支持
1系统默认
2指定等级
示例值:
2
data
string
可选
数据结构里, 要用规格id, 作为下标, 每个i规格对应的当前规格的数据值, 如示例里17724 就是规格的id
data.discount 数据值,折扣或者金额。折扣时, 值为0.1-9.9
data.level_id 会员等级id
data.type 数据值类型 1折扣 2金额
示例值:
{"17724":[{"discount":"99","id":874,"type":2,"level_id":22},{"discount":"5.00","id":875,"type":1,"level_id":62},{"discount":"2.00","id":876,"type":1,"level_id":176},{"discount":"3.00","id":877,"type":1,"level_id":177},{"discount":"4.00","id":878,"type":1,"level_id":178}],"17725":[{"discount":"1.00","id":879,"type":1,"level_id":22},{"discount":"5.00","id":880,"type":1,"level_id":62},{"discount":"2.00","id":881,"type":2,"level_id":176},{"discount":"3.00","id":882,"type":1,"level_id":177},{"discount":"4.00","id":883,"type":1,"level_id":178}]}
示例代码
返回响应
修改于 2024-08-14 08:45:39