sellerParamApi.md 15.4 KB

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:网销信息-商品参数(材质、舒适度...)

返回:

displayPosition=2:
{
  "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": "商品添加成功."
}
displayPosition=3:
{
  "code": 200,
  "data": [
    {
      "attributeId": 2001,
      "attributeName": "弹性",
      "attributeValues": "[{\"id\":1,\"name\":\"1\"},{\"id\":2,\"name\":\"2\"},{\"id\":3,\"name\":\"3\"},{\"id\":4,\"name\":\"4\"},{\"id\":5,\"name\":\"5\"}]",
      "idNameList": [
        {
          "id": "1",
          "text": "1"
        },
        {
          "id": "2",
          "text": "2"
        },
        {
          "id": "3",
          "text": "3"
        },
        {
          "id": "4",
          "text": "4"
        },
        {
          "id": "5",
          "text": "5"
        }
      ],
      "inputType": "select"
    },
    {
      "attributeId": 2002,
      "attributeName": "厚度",
      "attributeValues": "[{\"id\":1,\"name\":\"1\"},{\"id\":2,\"name\":\"2\"},{\"id\":3,\"name\":\"3\"},{\"id\":4,\"name\":\"4\"},{\"id\":5,\"name\":\"5\"}]",
      "idNameList": [
        {
          "id": "1",
          "text": "1"
        },
        {
          "id": "2",
          "text": "2"
        },
        {
          "id": "3",
          "text": "3"
        },
        {
          "id": "4",
          "text": "4"
        },
        {
          "id": "5",
          "text": "5"
        }
      ],
      "inputType": "select"
    },
    {
      "attributeId": 2003,
      "attributeName": "柔软度",
      "attributeValues": "[{\"id\":1,\"name\":\"1\"},{\"id\":2,\"name\":\"2\"},{\"id\":3,\"name\":\"3\"},{\"id\":4,\"name\":\"4\"},{\"id\":5,\"name\":\"5\"}]",
      "idNameList": [
        {
          "id": "1",
          "text": "1"
        },
        {
          "id": "2",
          "text": "2"
        },
        {
          "id": "3",
          "text": "3"
        },
        {
          "id": "4",
          "text": "4"
        },
        {
          "id": "5",
          "text": "5"
        }
      ],
      "inputType": "select"
    },
    {
      "attributeId": 2004,
      "attributeName": "透气性",
      "attributeValues": "[{\"id\":1,\"name\":\"1\"},{\"id\":2,\"name\":\"2\"},{\"id\":3,\"name\":\"3\"},{\"id\":4,\"name\":\"4\"},{\"id\":5,\"name\":\"5\"}]",
      "idNameList": [
        {
          "id": "1",
          "text": "1"
        },
        {
          "id": "2",
          "text": "2"
        },
        {
          "id": "3",
          "text": "3"
        },
        {
          "id": "4",
          "text": "4"
        },
        {
          "id": "5",
          "text": "5"
        }
      ],
      "inputType": "select"
    },
    {
      "attributeId": 2005,
      "attributeName": "洗涤提示",
      "attributeValues": "[{\"id\":1,\"name\":\"不可熨烫\"},{\"id\":2,\"name\":\"不可转笼翻转干燥\"},{\"id\":3,\"name\":\"30度水温弱速洗\"},{\"id\":4,\"name\":\"不可氯漂\"},{\"id\":5,\"name\":\"不可干洗\"},{\"id\":6,\"name\":\"不可拧干\"},{\"id\":7,\"name\":\"分色洗涤\"}]",
      "idNameList": [
        {
          "id": "1",
          "text": "不可熨烫"
        },
        {
          "id": "2",
          "text": "不可转笼翻转干燥"
        },
        {
          "id": "3",
          "text": "30度水温弱速洗"
        },
        {
          "id": "4",
          "text": "不可氯漂"
        },
        {
          "id": "5",
          "text": "不可干洗"
        },
        {
          "id": "6",
          "text": "不可拧干"
        },
        {
          "id": "7",
          "text": "分色洗涤"
        }
      ],
      "inputType": "checkbox"
    }
  ],
  "md5": "9576ae176cfef194f832047aa8a1e92b",
  "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": "成功"
}

7. 保存、修改商品描述

POST /SellerProductIntroController/updateProductIntro

请求参数

参数名称 参数类型 必填 示例 备注
productId int 2
productIntro String 10 商品描述

返回:

 200-成功:
{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "保存成功"
}

其他-失败:
{
  "code": 500,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "保存失败."
}

8. 保存、修改商品参数列表、舒适度、洗涤提示

POST /SellerStandardController/saveProductParam

请求参数(json)

示例:

{
    "productStandardRelationStr": [
        {
            "standardId": 32800, 
            "standardVal": "4444", 
            "parameterMakeId": "5566"
        }, 
        {
            "standardId": 789, 
            "standardVal": "7分袖", 
            "parameterMakeId": "4448"
        }, 
        {
            "standardId": 981, 
            "standardVal": "灯笼袖", 
            "parameterMakeId": "5363"
        }, 
        {
            "standardId": 788, 
            "standardVal": "适中", 
            "parameterMakeId": "4445"
        }
    ], 
    "attributeProValuesOne": [
        {
            "attributeId": 2098, 
            "productSkn": "512587810", 
            "attributeValueId": "2"
        }, 
        {
            "attributeId": 2001, 
            "productSkn": "512587810", 
            "attributeValueId": "4"
        }, 
        {
            "attributeId": 2002, 
            "productSkn": "512587810", 
            "attributeValueId": "3"
        }, 
        {
            "attributeId": 2003, 
            "productSkn": "512587810", 
            "attributeValueId": "2"
        }, 
        {
            "attributeId": 2004, 
            "productSkn": "512587810", 
            "attributeValueId": "1"
        }, 
        {
            "attributeId": 2005, 
            "productSkn": "512587810", 
            "attributeValueId": "1,2,3,4,5,6"
        }
    ], 
    "productSkn": 512587810, 
    "brandModel": null, 
    "brandSeries": 0
}
参数名称 参数类型 必填 备注
productSkn int 商品skn
productStandardRelationStr 数组 商品参数数组
productStandardRelationStr.standardId int 参数id
productStandardRelationStr.standardVal string 选中项的名字
productStandardRelationStr.parameterMakeId int 选中项的id
attributeProValuesOne 数组 舒适度、洗涤提示等参数数组
attributeProValuesOne.attributeValueId string 选中的id(多选用逗号隔开)
attributeProValuesOne.attributeId int 参数id)
brandModel int 品牌款型
brandSeries int 品牌系列

返回:

 200-成功:
{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "保存商品参数成功"
}

其他-失败:
{
  "code": 500,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "商品添加失败."
}

9. 保存、修改风格、图案纹理、制作工艺

POST /SellerStandardController/saveProductParam

请求参数(json)

{
    "productSkn": 512587810, 
    "attributeProValuesTwo": [
        {
            "productSkn": 512587810, 
            "attributeId": 115, 
            "attributeValueId": "16,9,37"
        }, 
        {
            "productSkn": 512587810, 
            "attributeId": 29, 
            "attributeValueId": "1,16"
        }, 
        {
            "productSkn": 512587810, 
            "attributeId": 2016, 
            "attributeValueId": "1122,996"
        }
    ]
}
参数名称 参数类型 必填 备注
productSkn int 商品skn
attributeProValuesTwo 数组 风格、图案纹理、制作工艺 数组
attributeProValuesTwo.attributeId int 风格、图案纹理、制作工艺id
attributeProValuesTwo.attributeValueId string 选择的id(多个id用逗号隔开)

返回:

 200-成功:
{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "保存成功"
}

其他-失败:
{
  "code": 500,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "保存失败."
}