文档
测试

19、新增商品

POST
/product/spuinfo/save

响应参数

参数名
类型
描述
必填
spuName
string
示例:Apple XR
必填
spuDescription
string
示例:Apple XR
必填
catalogId
int
示例:225
必填
brandId
int
示例:12
必填
weight
float
示例:0.048
必填
publishStatus
int
示例:0
必填
decript
array
数据列表
必填
images
array
数据列表
必填
bounds
object
数据字典
必填
buyBounds
int
示例:500
必填
growBounds
int
示例:6000
必填
baseAttrs
array
数据列表
必填
attrId
int
示例:7
必填
attrValues
string
示例:aaa;bb
必填
showDesc
int
示例:1
必填
skus
array
数据列表
必填
attr
array
数据列表
必填
attrId
int
示例:9
必填
attrName
string
示例:颜色
必填
attrValue
string
示例:黑色
必填
skuName
string
示例:Apple XR 黑色 6GB
必填
price
string
示例:1999
必填
skuTitle
string
示例:Apple XR 黑色 6GB
必填
skuSubtitle
string
示例:Apple XR 黑色 6GB
必填
images
array
数据列表
必填
imgUrl
string
示例:https://gulimall-hello.oss-cn-beijing.aliyuncs.com/2019-11-22//dcfcaec3-06d8-459b-8759-dbefc247845e_5b5e74d0978360a1.jpg
必填
defaultImg
int
示例:1
必填
descar
array
数据列表
必填
fullCount
int
示例:5
必填
discount
float
示例:0.98
必填
countStatus
int
示例:1
必填
fullPrice
int
示例:1000
必填
reducePrice
int
示例:10
必填
priceStatus
int
示例:0
必填
memberPrice
array
数据列表
必填
id
int
示例:1
必填
name
string
示例:aaa
必填
price
float
示例:1998.99
必填

说明 / 示例

~~~json { "spuName": "Apple XR", "spuDescription": "Apple XR", "catalogId": 225, "brandId": 12, "weight": 0.048, "publishStatus": 0, "decript": ["https://gulimall-hello.oss-cn-beijing.aliyuncs.com/2019-11-22//66d30b3f-e02f-48b1-8574-e18fdf454a32_f205d9c99a2b4b01.jpg"], "images": ["https://gulimall-hello.oss-cn-beijing.aliyuncs.com/2019-11-22//dcfcaec3-06d8-459b-8759-dbefc247845e_5b5e74d0978360a1.jpg", "https://gulimall-hello.oss-cn-beijing.aliyuncs.com/2019-11-22//5b15e90a-a161-44ff-8e1c-9e2e09929803_749d8efdff062fb0.jpg"], "bounds": { "buyBounds": 500, "growBounds": 6000 }, "baseAttrs": [{ "attrId": 7, "attrValues": "aaa;bb", "showDesc": 1 }, { "attrId": 8, "attrValues": "2019", "showDesc": 0 }], "skus": [{ "attr": [{ "attrId": 9, "attrName": "颜色", "attrValue": "黑色" }, { "attrId": 10, "attrName": "内存", "attrValue": "6GB" }], "skuName": "Apple XR 黑色 6GB", "price": "1999", "skuTitle": "Apple XR 黑色 6GB", "skuSubtitle": "Apple XR 黑色 6GB", "images": [{ "imgUrl": "https://gulimall-hello.oss-cn-beijing.aliyuncs.com/2019-11-22//dcfcaec3-06d8-459b-8759-dbefc247845e_5b5e74d0978360a1.jpg", "defaultImg": 1 }, { "imgUrl": "https://gulimall-hello.oss-cn-beijing.aliyuncs.com/2019-11-22//5b15e90a-a161-44ff-8e1c-9e2e09929803_749d8efdff062fb0.jpg", "defaultImg": 0 }], "descar": ["黑色", "6GB"], "fullCount": 5, "discount": 0.98, "countStatus": 1, "fullPrice": 1000, "reducePrice": 10, "priceStatus": 0, "memberPrice": [{ "id": 1, "name": "aaa", "price": 1998.99 }] }, { "attr": [{ "attrId": 9, "attrName": "颜色", "attrValue": "黑色" }, { "attrId": 10, "attrName": "内存", "attrValue": "12GB" }], "skuName": "Apple XR 黑色 12GB", "price": "2999", "skuTitle": "Apple XR 黑色 12GB", "skuSubtitle": "Apple XR 黑色 6GB", "images": [{ "imgUrl": "", "defaultImg": 0 }, { "imgUrl": "", "defaultImg": 0 }], "descar": ["黑色", "12GB"], "fullCount": 0, "discount": 0, "countStatus": 0, "fullPrice": 0, "reducePrice": 0, "priceStatus": 0, "memberPrice": [{ "id": 1, "name": "aaa", "price": 1998.99 }] }, { "attr": [{ "attrId": 9, "attrName": "颜色", "attrValue": "白色" }, { "attrId": 10, "attrName": "内存", "attrValue": "6GB" }], "skuName": "Apple XR 白色 6GB", "price": "1998", "skuTitle": "Apple XR 白色 6GB", "skuSubtitle": "Apple XR 黑色 6GB", "images": [{ "imgUrl": "", "defaultImg": 0 }, { "imgUrl": "", "defaultImg": 0 }], "descar": ["白色", "6GB"], "fullCount": 0, "discount": 0, "countStatus": 0, "fullPrice": 0, "reducePrice": 0, "priceStatus": 0, "memberPrice": [{ "id": 1, "name": "aaa", "price": 1998.99 }] }, { "attr": [{ "attrId": 9, "attrName": "颜色", "attrValue": "白色" }, { "attrId": 10, "attrName": "内存", "attrValue": "12GB" }], "skuName": "Apple XR 白色 12GB", "price": "2998", "skuTitle": "Apple XR 白色 12GB", "skuSubtitle": "Apple XR 黑色 6GB", "images": [{ "imgUrl": "", "defaultImg": 0 }, { "imgUrl": "", "defaultImg": 0 }], "descar": ["白色", "12GB"], "fullCount": 0, "discount": 0, "countStatus": 0, "fullPrice": 0, "reducePrice": 0, "priceStatus": 0, "memberPrice": [{ "id": 1, "name": "aaa", "price": 1998.99 }] }] }