16.类目服务-1.获取一级类目

简要描述
  • 获取一级类目接口
请求URL
  • http://101.34.87.143:8083/wx/catalog/getfirstcategory
请求方式
  • GET
参数
参数名 必选 类型 说明
返回示例
{
    "errno": 0,
    "data": [
        {
            "id": 1005000,
            "name": "居家",
            "keywords": "",
            "desc": "回家,放松身心",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/a45c2c262a476fea0b9fc684fed91ef5.png",
            "picUrl": "http://yanxuan.nosdn.127.net/e8bf0cf08cf7eda21606ab191762e35c.png",
            "level": "L1",
            "sortOrder": 2,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1005001,
            "name": "餐厨",
            "keywords": "",
            "desc": "爱,囿于厨房",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/ad8b00d084cb7d0958998edb5fee9c0a.png",
            "picUrl": "http://yanxuan.nosdn.127.net/3708dbcb35ad5abf9e001500f73db615.png",
            "level": "L1",
            "sortOrder": 3,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1005002,
            "name": "饮食",
            "keywords": "",
            "desc": "好吃,高颜值美食",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/c9280327a3fd2374c000f6bf52dff6eb.png",
            "picUrl": "http://yanxuan.nosdn.127.net/fb670ff3511182833e5b035275e4ac09.png",
            "level": "L1",
            "sortOrder": 9,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1008000,
            "name": "配件",
            "keywords": "",
            "desc": "配角,亦是主角",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/11abb11c4cfdee59abfb6d16caca4c6a.png",
            "picUrl": "http://yanxuan.nosdn.127.net/02f9a44d05c05c0dd439a5eb674570a2.png",
            "level": "L1",
            "sortOrder": 4,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1010000,
            "name": "服装",
            "keywords": "",
            "desc": "贴身的,要亲肤",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/28a685c96f91584e7e4876f1397767db.png",
            "picUrl": "http://yanxuan.nosdn.127.net/622c8d79292154017b0cbda97588a0d7.png",
            "level": "L1",
            "sortOrder": 5,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1011000,
            "name": "婴童",
            "keywords": "",
            "desc": "爱,从心开始",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/1ba9967b8de1ac50fad21774a4494f5d.png",
            "picUrl": "http://yanxuan.nosdn.127.net/9cc0b3e0d5a4f4a22134c170f10b70f2.png",
            "level": "L1",
            "sortOrder": 7,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1012000,
            "name": "杂货",
            "keywords": "",
            "desc": "解忧,每个烦恼",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/c2a3d6349e72c35931fe3b5bcd0966be.png",
            "picUrl": "http://yanxuan.nosdn.127.net/547853361d29a37282f377b9a755dd37.png",
            "level": "L1",
            "sortOrder": 8,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1013001,
            "name": "洗护",
            "keywords": "",
            "desc": "亲肤之物,严选天然",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/9fe068776b6b1fca13053d68e9c0a83f.png",
            "picUrl": "http://yanxuan.nosdn.127.net/1526ab0f5982722adbc8726f9f2a338c.png",
            "level": "L1",
            "sortOrder": 6,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        },
        {
            "id": 1019000,
            "name": "志趣",
            "keywords": "",
            "desc": "周边精品,共享热爱",
            "pid": 0,
            "iconUrl": "http://yanxuan.nosdn.127.net/7093cfecb9dde1dd3eaf459623df4071.png",
            "picUrl": "http://yanxuan.nosdn.127.net/1706e24a5e605870ba3b37ff5f49aa18.png",
            "level": "L1",
            "sortOrder": 10,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        }
    ],
    "errmsg": "成功"
}
返回参数说明
参数名 类型 说明
eroor int 返回错误信息代码
data jsonarray 包含关键字的商品,集合
errmsg string 返回 状态信息
备注
  • 更多返回错误代码请看首页的错误代码描述