文档
测试

商品上架

POST
/product/productInfo/put

请求参数

参数名
类型
描述
必填
merchatId
int
商家id
必填
name
string
商品名称
必填
image
int
商品图片
必填
price
int
商品价格
必填
keyword
string
商品关键字
必填
trait
int
* 特点 * 0,无 * 1,新品 * 2,招牌
必填
specification
int
规格模式 0:单规格 1多规格
必填
specifications
list
具体规格参数是一个对象集合
必填
details
string
商品详情
必填
typeId
int
商品类型id
必填

新增失败

参数名
类型
描述
必填
msg
string
示例:商品名称不能重复,请重新选择商品名称
必填
code
int
示例:11000
必填

说明 / 示例

当规格模式为1时得必填 specifications说明: "specifications":[ {"descript":"详情", "component":"尺寸/大小", "taste":口味, "packingFee":包装费, "price":价格, "shopId":商家ID, "productId":"商品ID"} ]