文档
测试

修改商品

POST
/api/goods/update

请求头

参数名
类型
描述
必填
token
string
token
必填

请求参数

参数名
类型
描述
必填
name
string
商品名
必填
goodsImages
string
商品图片
必填
goodsPrice
double
商品价格
必填
categoryId
list
所属分类的ID
必填
shopId
long
所属门店的ID
必填
goodsSmallLabels
list
商品子标签集合
必填
groupId
long
大标签id
必填
price
double
标签价格
必填
labelId
long
标签id
必填
goodsWares
list
商品所需扣减的库存
必填
wareId
long
库存的ID
必填
weight
bigdemcil
所需的量
必填
goodsDescribe
string
商品描述
必填
id
long
商品ID
必填

请求示例

{ "id": 3, "categoryId": 3, "goodsImages": "a.jpg", "goodsPrice": 55, "goodsPrice": "商品描述", "goodsSmallLabels": [ { "groupId":1, "labelId":1, "price":2.00 }, { "groupId":1, "labelId":2, "price":2.00 }, { "groupId":1, "labelId":3, "price":2.00 } ], "goodsWares":[ { "wareId":1, "weight":0.15 }, { "wareId":2, "weight":1 } ], "name": "红烧肉", "shopId": 1 }

说明 / 示例

{ "message":"success", "code":0 }