获取-一级分类列表
GET
/categoryfirst获取-一级分类列表
请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
msg
string
响应消息
code
integer
业务状态码
200成功, 其他失败
list
array [object {4}]
响应数据
id
integer
数据id
数据库中标记用, 写代码时暂时无用
firstId
string
一级分类id
firstName
string
一级分类名字
firstImgId
string
一级分类图片id
前端暂时无法直接访问(而且需求里一级分类无需显示图片)
示例成功示例
{
"msg": "恭喜你, 操作成功",
"code": 200,
"list": [
{
"id": 1,
"firstId": "621",
"firstName": "咖啡",
"firstImgId": "2dfe06e6-2707-11e9-8040-e0accb719100"
},
{
"id": 2,
"firstId": "627",
"firstName": "饮食",
"firstImgId": "2e4ab217-2707-11e9-96fc-e0accb719100"
},
{
"id": 3,
"firstId": "279",
"firstName": "男装",
"firstImgId": "2ecf479c-2707-11e9-9381-e0accb719100"
},
{
"id": 4,
"firstId": "294",
"firstName": "女装",
"firstImgId": "2f957547-2707-11e9-9aec-e0accb719100"
},
{
"id": 5,
"firstId": "122",
"firstName": "眼镜",
"firstImgId": "305d662b-2707-11e9-8be8-e0accb719100"
},
{
"id": 6,
"firstId": "339",
"firstName": "内衣配饰",
"firstImgId": "30b91a54-2707-11e9-bdae-e0accb719100"
},
{
"id": 7,
"firstId": "391",
"firstName": "母婴",
"firstImgId": "3160a53a-2707-11e9-81cf-e0accb719100"
},
{
"id": 8,
"firstId": "35",
"firstName": "鞋靴",
"firstImgId": "326cf323-2707-11e9-869c-e0accb719100"
},
{
"id": 9,
"firstId": "39",
"firstName": "运动",
"firstImgId": "331a1385-2707-11e9-b729-e0accb719100"
},
{
"id": 10,
"firstId": "153",
"firstName": "箱包",
"firstImgId": "33c09b17-2707-11e9-bae2-e0accb719100"
},
{
"id": 11,
"firstId": "119",
"firstName": "美妆个护",
"firstImgId": "3485f0fa-2707-11e9-96e4-e0accb719100"
},
{
"id": 12,
"firstId": "355",
"firstName": "家纺",
"firstImgId": "35f97754-2707-11e9-b99b-e0accb719100"
},
{
"id": 13,
"firstId": "51",
"firstName": "餐厨",
"firstImgId": "3689172e-2707-11e9-a378-e0accb719100"
},
{
"id": 14,
"firstId": "334",
"firstName": "电器",
"firstImgId": "371bbf1e-2707-11e9-92bd-e0accb719100"
},
{
"id": 15,
"firstId": "369",
"firstName": "家装",
"firstImgId": "383e2a3a-2707-11e9-a084-e0accb719100"
},
{
"id": 16,
"firstId": "10",
"firstName": "家具",
"firstImgId": "3904b83a-2707-11e9-8dfb-e0accb719100"
},
{
"id": 17,
"firstId": "223",
"firstName": "数码",
"firstImgId": "39c04a40-2707-11e9-87bf-e0accb719100"
},
{
"id": 18,
"firstId": "429",
"firstName": "汽配",
"firstImgId": "3a3f2494-2707-11e9-88c6-e0accb719100"
},
{
"id": 19,
"firstId": "546",
"firstName": "健康保健",
"firstImgId": "3a762187-2707-11e9-b06e-e0accb719100"
},
{
"id": 20,
"firstId": "433",
"firstName": "定制",
"firstImgId": "3ae7a2e1-2707-11e9-8e42-e0accb719100"
}
]
}
最后修改时间: 1 年前