Authored by lijian

尺码测量

  1 +# 产品尺码测量管理
  2 +---------------------
  3 +
  4 +## 查询产品尺码列表信息
  5 +
  6 +> 接口名:`productSize/queryProdSizeList`
  7 +
  8 +### 入参
  9 +
  10 +-------------------------
  11 +|属性名称|类型|例子|说明|
  12 +|--------|----|----|----|
  13 +|productSkn|int|234234|产品skn |
  14 +|brandId|int|23423| 品牌id|
  15 +|productSku|int|234234| 产品sku|
  16 +|maxSortId|int|223| 产品大类id|
  17 +|arriveStartTime|int|13555322333| 到货开始时间|
  18 +|arriveEndTime|int|13655322333| 到货开始时间|
  19 +|hasMeasure|int|1| 1 已测量 0 未测量 2 测量不全|
  20 +
  21 +---------------------
  22 +
  23 + ---------------------
  24 +
  25 +### 返回
  26 +
  27 +``` json
  28 +请求样例:
  29 +{
  30 + "productSkn": 133233
  31 +}
  32 +正常返回:
  33 +{
  34 + "code": 200,
  35 + "data": {
  36 + "list": [
  37 + {
  38 + "brandId": 106,
  39 + "brandName": "outerspace",
  40 + "expectArrivalTime": 0,
  41 + "gender": "1",
  42 + "genderName": "男",
  43 + "id": 147157,
  44 + "productId": 147157,
  45 + "productName": "outerspace 小丑LOGO波点圆舞曲卫衣",
  46 + "productSizeReferenceList": [
  47 + {
  48 + "gender": 1,
  49 + "id": 3,
  50 + "productSkn": 51088104,
  51 + "referenceName": "175/92A",
  52 + "sizeId": 201,
  53 + "sizeName": "L"
  54 + },
  55 + {
  56 + "gender": 1,
  57 + "id": 5,
  58 + "productSkn": 51088104,
  59 + "referenceName": "170/88A",
  60 + "sizeId": 203,
  61 + "sizeName": "M"
  62 + },
  63 + {
  64 + "gender": 1,
  65 + "id": 7,
  66 + "productSkn": 51088104,
  67 + "referenceName": "165/84A",
  68 + "sizeId": 207,
  69 + "sizeName": "S"
  70 + },
  71 + {
  72 + "gender": 1,
  73 + "id": 9,
  74 + "productSkn": 51088104,
  75 + "referenceName": "180/96A",
  76 + "sizeId": 211,
  77 + "sizeName": "XL"
  78 + }
  79 + ],
  80 + "productSkn": 51088104,
  81 + "productType": "男生\r\n服配\r\n靴子\r\n",
  82 + "sizeRelationsList": [
  83 + {
  84 + "id": 1829591,
  85 + "productSkn": 51088104,
  86 + "sizeAttributeId": 4,
  87 + "sizeAttributeName": "胸围",
  88 + "sizeId": 207,
  89 + "sizeName": "S",
  90 + "sizeValue": "96"
  91 + },
  92 + {
  93 + "id": 1829593,
  94 + "productSkn": 51088104,
  95 + "sizeAttributeId": 48,
  96 + "sizeAttributeName": "前衣长",
  97 + "sizeId": 207,
  98 + "sizeName": "S",
  99 + "sizeValue": "63"
  100 + },
  101 + {
  102 + "id": 1829595,
  103 + "productSkn": 51088104,
  104 + "sizeAttributeId": 49,
  105 + "sizeAttributeName": "后衣长",
  106 + "sizeId": 207,
  107 + "sizeName": "S",
  108 + "sizeValue": "63"
  109 + },
  110 + {
  111 + "id": 1829597,
  112 + "productSkn": 51088104,
  113 + "sizeAttributeId": 4,
  114 + "sizeAttributeName": "胸围",
  115 + "sizeId": 201,
  116 + "sizeName": "L",
  117 + "sizeValue": "104"
  118 + },
  119 + {
  120 + "id": 1829599,
  121 + "productSkn": 51088104,
  122 + "sizeAttributeId": 48,
  123 + "sizeAttributeName": "前衣长",
  124 + "sizeId": 201,
  125 + "sizeName": "L",
  126 + "sizeValue": "68"
  127 + },
  128 + {
  129 + "id": 1829601,
  130 + "productSkn": 51088104,
  131 + "sizeAttributeId": 49,
  132 + "sizeAttributeName": "后衣长",
  133 + "sizeId": 201,
  134 + "sizeName": "L",
  135 + "sizeValue": "68"
  136 + },
  137 + {
  138 + "id": 1829603,
  139 + "productSkn": 51088104,
  140 + "sizeAttributeId": 4,
  141 + "sizeAttributeName": "胸围",
  142 + "sizeId": 211,
  143 + "sizeName": "XL",
  144 + "sizeValue": "110"
  145 + },
  146 + {
  147 + "id": 1829605,
  148 + "productSkn": 51088104,
  149 + "sizeAttributeId": 48,
  150 + "sizeAttributeName": "前衣长",
  151 + "sizeId": 211,
  152 + "sizeName": "XL",
  153 + "sizeValue": "71"
  154 + },
  155 + {
  156 + "id": 1829607,
  157 + "productSkn": 51088104,
  158 + "sizeAttributeId": 49,
  159 + "sizeAttributeName": "后衣长",
  160 + "sizeId": 211,
  161 + "sizeName": "XL",
  162 + "sizeValue": "71"
  163 + },
  164 + {
  165 + "id": 1833265,
  166 + "productSkn": 51088104,
  167 + "sizeAttributeId": 4,
  168 + "sizeAttributeName": "胸围",
  169 + "sizeId": 203,
  170 + "sizeName": "M",
  171 + "sizeValue": "98"
  172 + },
  173 + {
  174 + "id": 1833267,
  175 + "productSkn": 51088104,
  176 + "sizeAttributeId": 48,
  177 + "sizeAttributeName": "前衣长",
  178 + "sizeId": 203,
  179 + "sizeName": "M",
  180 + "sizeValue": "66"
  181 + },
  182 + {
  183 + "id": 1833269,
  184 + "productSkn": 51088104,
  185 + "sizeAttributeId": 49,
  186 + "sizeAttributeName": "后衣长",
  187 + "sizeId": 203,
  188 + "sizeName": "M",
  189 + "sizeValue": "66"
  190 + }
  191 + ]
  192 + }
  193 + ],
  194 + "page": 1,
  195 + "size": 10,
  196 + "total": 1,
  197 + "totalPage": 1
  198 + },
  199 + "md5": "7fc9a2878e1861ea3df3a2d5d3a2fe2b",
  200 + "message": "产品测量信息列表"
  201 +}
  202 +异常返回:
  203 +{
  204 + "code": 405,
  205 + "data": [],
  206 + "md5": "d751713988987e9331980363e24189ce",
  207 + "message": ""
  208 +}
  209 +
  210 +```
  211 +
  212 +## 查询产品应该要测量的属性列表
  213 +
  214 +> 接口名:`productSize/queryAllProdMeasureInfo``
  215 +
  216 +### 入参
  217 +
  218 +-------------------------
  219 +|属性名称|类型|例子|说明|
  220 +|--------|----|----|----|
  221 +|productSkn|int|526456456|产品skn 必传 |
  222 +---------------------
  223 +
  224 +### 返回
  225 +
  226 +``` json
  227 +请求样例: 新增
  228 +{ "productSkn":234234234
  229 +}
  230 +返回
  231 +{
  232 + "code": 200,
  233 + "data": [
  234 + {
  235 + "productSkn": 50000057,
  236 + "sizeAttributeId": 1,
  237 + "sizeAttributeName": "后中长134567",
  238 + "sizeId": 203,
  239 + "sizeName": "M"
  240 + },
  241 + {
  242 + "productSkn": 50000057,
  243 + "sizeAttributeId": 1,
  244 + "sizeAttributeName": "后中长134567",
  245 + "sizeId": 203,
  246 + "sizeName": "M"
  247 + },
  248 + {
  249 + "productSkn": 50000057,
  250 + "sizeAttributeId": 3,
  251 + "sizeAttributeName": "肩宽",
  252 + "sizeId": 207,
  253 + "sizeName": "S"
  254 + },
  255 + {
  256 + "productSkn": 50000057,
  257 + "sizeAttributeId": 4,
  258 + "sizeAttributeName": "胸围",
  259 + "sizeId": 203,
  260 + "sizeName": "M"
  261 + },
  262 + {
  263 + "productSkn": 50000057,
  264 + "sizeAttributeId": 49,
  265 + "sizeAttributeName": "后衣长",
  266 + "sizeId": 203,
  267 + "sizeName": "M"
  268 + },
  269 + {
  270 + "productSkn": 50000057,
  271 + "sizeAttributeId": 49,
  272 + "sizeAttributeName": "后衣长",
  273 + "sizeId": 203,
  274 + "sizeName": "M"
  275 + },
  276 + {
  277 + "productSkn": 50000057,
  278 + "sizeAttributeId": 49,
  279 + "sizeAttributeName": "后衣长",
  280 + "sizeId": 207,
  281 + "sizeName": "S"
  282 + }
  283 + ],
  284 + "md5": "5d0a55a6b686197bf41658a16cbef4fd",
  285 + "message": ""
  286 +}
  287 +```
  288 +
  289 +## 新增或修改产品尺码测量
  290 +
  291 +> 接口名:`productSize/saveProdSizeInfo`
  292 +
  293 +### 入参
  294 +-------------------------
  295 +|属性名称|类型|例子|说明|
  296 +|--------|----|----|----|
  297 +|productSkn|int|234234|产品skn |
  298 +|sizeInfoList|array| [ {"productSkn":50000057, "sizeId":207,"sizeAttributeId":48,"sizeValue":"555", "isMeasure":0 }]| 尺码测量属性|
  299 +|productSizeReferList|array| [ { "sizeId":207,"gender":1, "referenceName":"170/80A"}]|参考尺码属性|
  300 +---------------------
  301 +### 返回
  302 +
  303 +``` json
  304 +请求样例: 新增
  305 +{
  306 + "productSkn":50000057,
  307 + "sizeInfoList":
  308 + [ {"productSkn":50000057,
  309 + "sizeId":207,
  310 + "sizeAttributeId":48,
  311 + "sizeValue":"555",
  312 + "isMeasure":0
  313 + }
  314 + ],
  315 + "productSizeReferList":
  316 + [ {
  317 + "sizeId":207,
  318 + "gender":1,
  319 + "referenceName":"170/80A"
  320 + }
  321 + ]
  322 +}
  323 +返回
  324 +{
  325 + "code": 200,
  326 + "data": [],
  327 + "md5": "d751713988987e9331980363e24189ce",
  328 + "message": "新增产品信息成功"
  329 +}
  330 +```
  331 +
  332 +