product-material.md 1.96 KB

材质接口服务定义


查询所有材质接口(用于页面多选)

接口名: product/queryMaterialList

入参


属性名称 类型 例子 说明 是否必填
categoryId int 1 一级分类ID

返回

{
  "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": "03f81b5d77079e9c922e1c38124780bc",
  "message": "成功"
}