product_size.md
8.92 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,
"noMeasureIds": [
"1",
"5"
],
"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": [
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "110"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "71"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "71"
}
],
"sizeId": 211,
"sizeName": "XL"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "104"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "68"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "68"
}
],
"sizeId": 201,
"sizeName": "L"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "98"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "66"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "66"
}
],
"sizeId": 203,
"sizeName": "M"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "96"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "63"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "63"
}
],
"sizeId": 207,
"sizeName": "S"
}
]
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "ff48e582cdb6473ff750aa2d4518f412",
"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"}] | 参考尺码属性 |
noMeasureIds | array | ["21","213"] | 无需测量的尺码id |
返回
请求样例: 新增
{
"productSkn":50000057,
"noMeasureIds":["21","213"],
"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": "新增产品信息成功"
}