新增商品
POST
csc/product/save/{id}
接口描述
用户新增一个商品
请求参数
参数名
类型
描述
必填
shopId
Long
实例:1(商品所属店铺id)
必填
productName
string
示例:商品test(店铺名称)
必填
productUrl
string
示例:http://image.photophoto.cn/nm-15/037/006/0370060478.jpg (商品图片)
必填
store
int
示例:55 (商品库存)
必填
salesAll
int
示例:70(总销量)
可选
salesMonth
int
示例:5 (月销量)
可选
costPrice
decimal
示例:55 (成本价)
可选
oldPrice
decimal
示例:99 (划线价)
可选
price
decimal
示例:66 (现价)
必填
unit
string
示例:kg (单位)
必填
limitMin
int
示例:3 (最少限购)
可选
limitMax
int
示例:9999 (最多限购)
可选
descripe
string
示例:好吃 (评价)
可选
weight
double
示例:3 (每份多重)
必填
typeName
String
示例:糕点 分类名
必填
typeId
Long
示例:5 分类id
必填
isSign
int
0/1
必填
proposal
int
建议:3人份
可选
响应参数
参数名
类型
描述
必填
code
int
成功200 失败500
必填
msg
String
返回信息
必填