字典项级联选择
GET
/sys/dict/item/cascader/{dictId}
请求参数
Path 参数
dictId
integer
必需
示例值:
2
Header 参数
Authorization
string
可选
示例值:
Bearer {{pc_token}}
Accept-Language
string
可选
默认值:
en-US
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://k28hrq.natappfree.cc/arbitrage/sys/dict/item/cascader/2' \
--header 'Authorization: Bearer {{pc_token}}' \
--header 'Authorization;' \
--header 'Accept-Language: en-US'
返回响应
🟢200成功
application/json
Body
data
array[object (级联信息) {3}]
必需
value
integer
必需
label
string
必需
children
array[object (级联信息) {3}] | null
必需
error
null
必需
示例
{
"data": [
{
"value": 4,
"label": "编码",
"children": [
{
"value": 7,
"label": "Java",
"children": null
},
{
"value": 8,
"label": "Go",
"children": null
},
{
"value": 9,
"label": "Node.js",
"children": null
}
]
},
{
"value": 5,
"label": "足球",
"children": [
{
"value": 10,
"label": "皇马",
"children": null
},
{
"value": 11,
"label": "曼联",
"children": null
},
{
"value": 12,
"label": "里斯本竞技",
"children": null
}
]
},
{
"value": 6,
"label": "F1",
"children": [
{
"value": 13,
"label": "阿斯顿马丁",
"children": null
},
{
"value": 14,
"label": "红牛",
"children": null
},
{
"value": 15,
"label": "梅赛德斯AMG",
"children": null
}
]
}
],
"error": null
}
修改于 2024-11-10 12:18:19