查询分类列表
POST
/v1/category/list
请求参数
无
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/category/list'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
msg
string
信息
data
array [object {6}]
数据
id
integer
分类ID
parentId
integer
上级ID
sort
integer
排序号
name
string
分类名称
icon
string
图标
children
array [object {5}]
子分类
示例
{
"code": 200,
"msg": "操作成功",
"data": [
{
"id": 100000,
"parentId": null,
"sort": 1,
"name": "生活服务",
"icon": "https://cdn.gamesup.cn/dev/20250312/19588a9db02075.png",
"children": [
{
"id": 100011,
"parentId": 100000,
"sort": 1,
"name": "美团",
"icon": "https://cdn.gamesup.cn/dev/20250311/195859c9664033.png"
},
{
"id": 100012,
"parentId": 100000,
"sort": 2,
"name": "饿了么",
"icon": "https://cdn.gamesup.cn/dev/20250312/195880e836605f.png"
}
]
},
{
"id": 100001,
"parentId": null,
"sort": 2,
"name": "餐饮美食",
"icon": "https://cdn.gamesup.cn/dev/20250312/1958894bc9806x.png",
"children": [
{
"id": 100017,
"parentId": 100001,
"sort": 0,
"name": "星巴克",
"icon": "https://cdn.gamesup.cn/dev/20250311/19585a229bf03b.png"
},
{
"id": 100018,
"parentId": 100001,
"sort": 1,
"name": "肯德基",
"icon": "https://cdn.gamesup.cn/dev/20250311/19585a3108e03c.png"
}
]
},
{
"id": 100013,
"parentId": null,
"sort": 100,
"name": "对接测试",
"icon": "https://cdn.gamesup.cn/dev/20250312/19589481263001.png",
"children": [
{
"id": 100125,
"parentId": 100013,
"sort": 0,
"name": "接口对接",
"icon": "https://cdn.gamesup.cn/dev/20250312/1958987bab5002.png"
}
]
}
]
}
修改于 2025-03-29 05:46:04