商品分类类目

商品分类类目

请求地址

GET https://{host}/openapi/product/category

请求参数

param

属性 类型 默认值 必填 说明
id int 分类类目ID。

返回值

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "currentCategory": {
      "id": 1008002,
      "name": "布艺软装",
      "keywordList": [],
      "categoryDesc": "各种风格软装装点你的家",
      "pid": 1005000,
      "iconUrl": "http://yanxuan.nosdn.127.net/8bbcd7de60a678846664af998f57e71c.png",
      "picUrl": "http://yanxuan.nosdn.127.net/2e2fb4f2856a021bbcd1b4c8400f2b06.png",
      "level": "L2",
      "sortOrder": 6
    },
    "brotherCategory": [
      {
        "id": 1008002,
        "name": "布艺软装",
        "keywordList": [],
        "categoryDesc": "各种风格软装装点你的家",
        "pid": 1005000,
        "iconUrl": "http://yanxuan.nosdn.127.net/8bbcd7de60a678846664af998f57e71c.png",
        "picUrl": "http://yanxuan.nosdn.127.net/2e2fb4f2856a021bbcd1b4c8400f2b06.png",
        "level": "L2",
        "sortOrder": 6
      }
    ],
    "parentCategory": {
      "id": 1005000,
      "name": "居家",
      "keywordList": [],
      "categoryDesc": "回家,放松身心",
      "pid": 0,
      "iconUrl": "http://yanxuan.nosdn.127.net/a45c2c262a476fea0b9fc684fed91ef5.png",
      "picUrl": "http://yanxuan.nosdn.127.net/e8bf0cf08cf7eda21606ab191762e35c.png",
      "level": "L1",
      "sortOrder": 2
    }
  }
}

参数说明

属性 类型 说明
data DATA 包含返回的数据
errcode number 错误码
errmsg string 错误信息

DATA

属性 类型 说明
currentCategory category 当前分类类目
brotherCategory list 当前分类的子分类
parentCategory category 所有一级分类

category

属性 类型 说明
id int id
name String 类目名称
keywordList List 类目关键字,列表
brandDesc String 类目广告语介绍
pid int 品牌图片
iconUrl BigDecimal 类目图标
picUrl String 类目图片
level String 层级
sortOrder int 排序

errcode 的合法值

说明 最低版本
-1 系统错误
0 请求成功
20001 参数为空
20003 参数错误

results matching ""

    No results matching ""