尺码尺寸查询接口.md
5.79 KB
1、根据skn查询尺码测量值
根据skn查询尺码测量值(/SellerProductSize/queryProdSizeList)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
---|---|---|---|---|
productSkn | int | 否 | skn | skn |
注意,通用的头部没有列出。
请求示例
http://127.0.0.1:8088/platform/SellerProductSize/queryProdSizeList
请求样例数据
请求样例:
{"productSkn":512587916}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"expectArrivalTime": 0, // 忽略
"gender": "1",
"genderName": "男",
"noMeasureIds": [ // 代表sizeAttributeId 不需要测量的将其置灰 没有此节点则代表没有需要置灰的列
"2",
"5"
],
"productName": "商品名",
"productSkn": 512587916,
"sizeImgFlag": 0, // 是否隐藏测量方式图 1 代表隐藏, 0 不隐藏
"sizeRelationsList": [ // 列表元素个数对应行数 每一行代表 一个尺码
{
"prdSizeAttributeBoList": [
{
"isMeasure": 1, // 忽略
"orderBy": 0, // 忽略
"sizeAttributeId": 2, // 尺码测量属性的ID
"sizeAttributeName": "裙长" // 尺码测量属性的名称
"sizeValue": "32" // 尺码测量属性的值 人工维护的值 如果当前元素没有此节点代表没有填写值,展示空
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 5,
"sizeAttributeName": "袖长",
"sizeValue": "23"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 6,
"sizeAttributeName": "腰围",
"sizeValue": "23"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 6,
"sizeAttributeName": "腰围",
"sizeValue": "23"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 7,
"sizeAttributeName": "裆长",
"sizeValue": "33"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 8,
"sizeAttributeName": "裤长",
"sizeValue": "44"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 9,
"sizeAttributeName": "裤脚围",
"sizeValue": "55"
}
],
"referenceName": "12/34", // 参考尺码, 用/ 分开两个输入框中
"sizeId": 203, // 当前行的尺码ID
"sizeName": "M" // 当前行尺码名称
},
{
"prdSizeAttributeBoList": [
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 2,
"sizeAttributeName": "裙长"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽",
"sizeValue": "23"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 6,
"sizeAttributeName": "腰围"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 6,
"sizeAttributeName": "腰围"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 7,
"sizeAttributeName": "裆长",
"sizeValue": "32"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 8,
"sizeAttributeName": "裤长"
},
{
"isMeasure": 1,
"orderBy": 0,
"sizeAttributeId": 9,
"sizeAttributeName": "裤脚围",
"sizeValue": "55"
}
],
"referenceName": "",
"sizeId": 207,
"sizeName": "S"
}
],
"updateUid": 0
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "afd92caa03f3fafc63af66d50e92ba0b",
"message": "产品测量信息列表"
}
异常返回:
{
"code": 500,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "参数校验错误"
}