文档
测试

保存商品信息

POST
{{url}}/shop/goods/saveGoods

请求参数

参数名
类型
描述
必填
goodsId
int
商品id(新增时不穿)
必填
shopId
int
商店id
必填
goodsName
string
商品名称
必填
oneLevel
int
一级分类id
必填
twoLevel
int
二级分类id
必填
goodsUrls
string
商品图片合集 ;隔开
必填
unifyModel
int
1 统一型号 2多级型号
必填
oldPrice
float
划线价 原价
必填
minPrice
float
最低价
必填
maxPrice
float
最高价
必填
isEmptyNum
int
库存是否为空 1 为0
必填
isSell
int
1 上架 2下架
必填
serverStr
string
示例:服务列表
必填
goodsModelInfoList
array
数据列表
必填
goodsId
int
商品id
必填
modelPic
string
图片
必填
isSell
int
1 上架 2下架
必填
price
int
价格
必填
modelNum
int
库存
必填
modelWeight
int
重量kg
必填
costPrice
int
成本价
必填
modelCode
string
商品编码 选填
必填
attrStrMap
object
数据字典
必填
规格
string
示例:大
必填
ceshi
string
示例:ceshi1
必填
goodsModelList
array
数据列表
必填
goodsId
int
商品id(新增时不穿)
必填
mpName
string
型号名称
必填
children
array
数据列表
必填
goodsId
int
商品id
必填
mpName
string
型号名称
必填
deliveryAreaId
可配送模板 id
必填
tempId
运费模板id
必填
deliveryAreaName
可配送区域模板名称
必填
tempName
运费模板信息
必填
oneLevelName
一级分类名称
必填
twoLevelName
二级分类名称
必填
level
【1,2】分类
必填