sellerParamApi.md 13 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": "查询成功."
}

返回:

{
  "code": 200,
  "data": {
    "productId": 1,
    "productIntro": "sdas<p>11134444411</p>"
  },
  "md5": "246d7376b018dcc28a68a392cb19c633",
  "message": "查询成功."
}

5. 根据品类查询商品参数列表

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": "成功"
}

6、查询品类所有材质

查询品类所有材质(/SellerProductController/querySellerProductMaterial)

请求参数

参数名称 参数类型 可否为空 示例 备注
maxSortId int 类别id

注意,通用的头部没有列出。

请求示例 http://127.0.0.1:8088/platform/SellerProductController/querySellerProductMaterial?maxSortId=1

请求样例数据

正常返回:
{
    "code": 200,
    "data": {
        "attributeId": 1,
        "attributeName": "材质",
        "attributeValues": "[{\"id\":119,\"name\":\"反光\"},{\"id\":113,\"name\":\"雪纺\"},{\"id\":109,\"name\":\"太空棉\"},{\"id\":79,\"name\":\"丹宁\"},{\"id\":66,\"name\":\"毛呢\"},{\"id\":18,\"name\":\"麻\"},{\"id\":13,\"name\":\"尼龙/锦纶\"},{\"id\":11,\"name\":\"皮革\"},{\"id\":10,\"name\":\"棉\"},{\"id\":9,\"name\":\"羊毛/羊绒\"},{\"id\":6,\"name\":\"涤纶/聚酯纤维\"},{\"id\":2,\"name\":\"PU\"}]",
        "categoryId": 1,
        "idNameList": [
            {
                "id": "119",
                "text": "反光"
            },
            {
                "id": "113",
                "text": "雪纺"
            },
            {
                "id": "109",
                "text": "太空棉"
            },
            {
                "id": "79",
                "text": "丹宁"
            },
            {
                "id": "66",
                "text": "毛呢"
            },
            {
                "id": "18",
                "text": "麻"
            },
            {
                "id": "13",
                "text": "尼龙/锦纶"
            },
            {
                "id": "11",
                "text": "皮革"
            },
            {
                "id": "10",
                "text": "棉"
            },
            {
                "id": "9",
                "text": "羊毛/羊绒"
            },
            {
                "id": "6",
                "text": "涤纶/聚酯纤维"
            },
            {
                "id": "2",
                "text": "PU"
            }
        ],
        "inputType": "checkbox"
    },
    "md5": "0ed118a79a896ad8607ceebcb5aef197",
    "message": "查询品类所有材质成功."
}
异常返回:

{
    "code": 400,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "品类id错误"
}

{
    "code": 500,
    "data": [],
    "md5": "8b233b3ba501d3563be331aa58d0fe0d",
    "message": "查询品类所有材质失败:错误信息."
}