Authored by gemingdan

UPDATE

## 1. 根据品类查询所有关联的尺码
GET /SellerSortSizeController/querySortSize
#### 请求参数
| 参数名称 | 参数类型 | 必填 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|sortId|int|是|1|品类id|
#### 返回:
{
"code": 200,
"data": [
{
"id": 2108,
"sizeName": "尺码2测试"
},
{
"id": 2106,
"sizeName": "木木02"
},
{
"id": 563,
"sizeName": "关联64级"
}
],
"md5": "2377c4bc49e970d847896b95a166604d",
"message": "查询成功."
}
## 2. 根据店铺、品牌查询供应商
GET /SellerShopsBrandsController/querySupplier
#### 请求参数
| 参数名称 | 参数类型 | 必填 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|shopsId|int|是|18|店铺id|
|brandId|int|是|2454|品牌id|
#### 返回:
{
"code": 200,
"data": [
{
"id": 1702,
"supplierCode": "123123323234",
"supplierName": "阿迪供应商"
}
],
"md5": "aad0b679a2fce50347b623db5c9bfaca",
"message": "查询成功."
}
## 3. 根据品类查询风格、图案纹理,制作工艺
GET /SellerProductAttributeController/selectAttributes
#### 请求参数
| 参数名称 | 参数类型 | 必填 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|saleType|int|是|2|1:销售属性 2:非销售属性 3:扩展属性|
|categoryId|int|是|114|品类id|
|displayPosition|int|是|2|1:基础商品-非销售属性 2:网销信息-上架后补全信息 3:网销信息-商品参数|
#### 返回:
{
"code": 200,
"data": [
{
"attributeId": 115,
"attributeName": "制作工艺",
"attributeValues": "[{\"id\":1,\"name\":\"镶边\"},{\"id\":2,\"name\":\"贴布\"},...]",
"categoryId": 1,
"createTime": 1459906085,
"displayPosition": 2,
"idNameList": [
{
"id": "1",
"text": "镶边"
},
{
"id": "2",
"text": "贴布"
},
...
],
"inputType": "checkbox",
"isSearch": "",
"orderBy": 111,
"saleType": 2
},
{
"attributeId": 29,
"attributeName": "图案纹理",
"attributeValues": "[{\"id\":1,\"name\":\"条纹\"},{\"id\":2,\"name\":\"海魂\"},...]",
"belong": 10,
"categoryId": 1,
"createTime": 0,
"displayPosition": 2,
"idNameList": [
{
"id": "1",
"text": "条纹"
},
{
"id": "2",
"text": "海魂"
},
...
],
"inputType": "checkbox",
"isAllowAlias": "Y",
"isColor": "N",
"isMust": "N",
"isSearch": "Y",
"maxValueLen": 25,
"orderBy": 0,
"saleType": 2,
"state": 1
},
{
"attributeId": 2016,
"attributeName": "风格",
"attributeValues": "[{\"id\":989,\"name\":\"运动\"},{\"id\":990,\"name\":\"户外\"},...]",
"belong": 10,
"categoryId": 1,
"createTime": 0,
"displayPosition": 2,
"idNameList": [
{
"id": "989",
"text": "运动"
},
{
"id": "990",
"text": "户外"
},
...
],
"inputType": "checkbox",
"isAllowAlias": "Y",
"isColor": "N",
"isMust": "N",
"isSearch": "Y",
"maxValueLen": 25,
"orderBy": 0,
"saleType": 2,
"state": 1
}
],
"md5": "fe7bc02e2d4639ef4f962667e6c0f297",
"message": "商品添加成功."
}
## 4. 查询商品的洗涤提示、材质、舒适度
GET /SellerProductSpecialAttrController/queryProductSpecialAttrByProductId
#### 请求参数
| 参数名称 | 参数类型 | 必填 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|productId|int|是|11056||
#### 返回:
{
"code": 200,
"data": {
"materialList": [
{
"id": 10
}
],
"productId": 11056,
"sizeStandard": 1,
"washTipsList": [
{
"sortId": 2
},
...
],
"wearSenses": [
{
"id": 1,
"value": 3
},
...
]
},
"md5": "614646bd3b0a301e02e61faaa769a19d",
"message": "查询成功."
}
## 5. 查询商品描述
GET SellerProductIntroController/queryProductIntroByProductId
#### 请求参数
| 参数名称 | 参数类型 | 必填 | 示例 |
|:-------| -----:|-----:|-----:|
|productId|int|是|1|
#### 返回:
{
"code": 200,
"data": {
"productId": 1,
"productIntro": "sdas<p>11134444411</p>"
},
"md5": "246d7376b018dcc28a68a392cb19c633",
"message": "查询成功."
}
## 6. 根据品类查询商品参数列表
GET /SellerStandardController/queryProductParamBySortId
#### 请求参数
| 参数名称 | 参数类型 | 必填 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|sortId|int|是|114|品类id|
#### 返回:
{
"code": 200,
"data": [
{
"attributeId": 981,
"attributeName": "袖型",
"attributeValues": "[{\"id\":5363,\"name\":\"灯笼袖\"},...]",
"categoryId": 114,
"idNameList": [
{
"id": "5363",
"text": "灯笼袖"
},
...
],
"inputType": "select"
},
{
"attributeId": 788,
"attributeName": "衣长",
"attributeValues": "[{\"id\":4444,\"name\":\"短款\"},{\"id\":4445,\"name\":\"适中\"},{\"id\":4446,\"name\":\"长款\"}]",
"categoryId": 114,
"idNameList": [
{
"id": "4444",
"text": "短款"
},
{
"id": "4445",
"text": "适中"
},
{
"id": "4446",
"text": "长款"
}
],
"inputType": "select"
},
...
],
"md5": "dad29d8ef986bde22a608869c3981c0f",
"message": "成功"
}
... ...