product_size.md
7.97 KB
产品尺码测量管理
查询产品尺码列表信息
接口名:
productSize/queryProdSizeList
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
productSkn | int | 234234 | 产品skn |
brandId | int | 23423 | 品牌id |
productSku | int | 234234 | 产品sku |
maxSortId | int | 223 | 产品大类id |
arriveStartTime | int | 13555322333 | 到货开始时间 |
arriveEndTime | int | 13655322333 | 到货开始时间 |
isMeasure | string | 1 | Y 已测量 N 未测量 |
返回
请求样例:
{
"productSkn": 133233
}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"brandId": 106,
"brandName": "outerspace",
"expectArrivalTime": 0,
"gender": "1",
"genderName": "男",
"id": 147157,
"productId": 147157,
"productName": "outerspace 小丑LOGO波点圆舞曲卫衣",
"productSizeReferenceList": [
{
"gender": 1,
"id": 3,
"productSkn": 51088104,
"referenceName": "175/92A",
"sizeId": 201,
"sizeName": "L"
},
{
"gender": 1,
"id": 5,
"productSkn": 51088104,
"referenceName": "170/88A",
"sizeId": 203,
"sizeName": "M"
},
{
"gender": 1,
"id": 7,
"productSkn": 51088104,
"referenceName": "165/84A",
"sizeId": 207,
"sizeName": "S"
},
{
"gender": 1,
"id": 9,
"productSkn": 51088104,
"referenceName": "180/96A",
"sizeId": 211,
"sizeName": "XL"
}
],
"productSkn": 51088104,
"productType": "男生\r\n服配\r\n靴子\r\n",
"sizeRelationsList": [
{
"id": 1829591,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 207,
"sizeName": "S",
"sizeValue": "96"
},
{
"id": 1829593,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 207,
"sizeName": "S",
"sizeValue": "63"
},
{
"id": 1829595,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 207,
"sizeName": "S",
"sizeValue": "63"
},
{
"id": 1829597,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 201,
"sizeName": "L",
"sizeValue": "104"
},
{
"id": 1829599,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 201,
"sizeName": "L",
"sizeValue": "68"
},
{
"id": 1829601,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 201,
"sizeName": "L",
"sizeValue": "68"
},
{
"id": 1829603,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 211,
"sizeName": "XL",
"sizeValue": "110"
},
{
"id": 1829605,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 211,
"sizeName": "XL",
"sizeValue": "71"
},
{
"id": 1829607,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 211,
"sizeName": "XL",
"sizeValue": "71"
},
{
"id": 1833265,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 203,
"sizeName": "M",
"sizeValue": "98"
},
{
"id": 1833267,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 203,
"sizeName": "M",
"sizeValue": "66"
},
{
"id": 1833269,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M",
"sizeValue": "66"
}
]
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "7fc9a2878e1861ea3df3a2d5d3a2fe2b",
"message": "产品测量信息列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
查询产品应该要测量的属性列表
接口名:
productSize/queryAllProdMeasureInfo
`
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
productSkn | int | 526456456 | 产品skn 必传 |
返回
请求样例: 新增
{ "productSkn":234234234
}
返回
{
"code": 200,
"data": [
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽",
"sizeId": 207,
"sizeName": "S"
},
{
"productSkn": 50000057,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 207,
"sizeName": "S"
}
],
"md5": "5d0a55a6b686197bf41658a16cbef4fd",
"message": ""
}
新增或修改产品尺码测量
接口名:
productSize/saveProdSizeInfo
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
productSkn | int | 234234 | 产品skn |
sizeInfoList | array | [ {"productSkn":50000057, "sizeId":207,"sizeAttributeId":48,"sizeValue":"555", "isMeasure":0 }] | 尺码测量属性 |
productSizeReferList | array | [ { "sizeId":207,"gender":1, "referenceName":"170/80A"}] | 参考尺码属性 |
返回
请求样例: 新增
{
"productSkn":50000057,
"sizeInfoList":
[ {"productSkn":50000057,
"sizeId":207,
"sizeAttributeId":48,
"sizeValue":"555",
"isMeasure":0
}
],
"productSizeReferList":
[ {
"sizeId":207,
"gender":1,
"referenceName":"170/80A"
}
]
}
返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增产品信息成功"
}