字典数据
开发中GET
/adminapi/config/dict根据字典类型获取字典数据
请求参数
Query 参数
type
string
类型值
示例值:
level,show_status
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
level
array [object {11}]
必需
show_status
array [object {11}]
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"level": [
{
"id": 19,
"name": "等级111",
"value": "1",
"type_id": 13,
"type_value": "level",
"sort": 0,
"status": 1,
"remark": "",
"create_time": "2022-07-12 11:33:00",
"update_time": "2022-07-12 11:33:00",
"delete_time": null
},
{
"id": 20,
"name": "等级222",
"value": "2",
"type_id": 13,
"type_value": "level",
"sort": 0,
"status": 1,
"remark": "",
"create_time": "2022-07-12 11:33:08",
"update_time": "2022-07-12 11:33:08",
"delete_time": null
},
{
"id": 21,
"name": "等级333",
"value": "3",
"type_id": 13,
"type_value": "level",
"sort": 0,
"status": 1,
"remark": "",
"create_time": "2022-07-12 11:33:25",
"update_time": "2022-07-12 11:33:25",
"delete_time": null
},
{
"id": 22,
"name": "等级444",
"value": "4",
"type_id": 13,
"type_value": "level",
"sort": 0,
"status": 1,
"remark": "",
"create_time": "2022-07-12 11:33:42",
"update_time": "2022-07-12 11:33:42",
"delete_time": null
}
],
"show_status": [
{
"id": 16,
"name": "隐藏",
"value": "0",
"type_id": 12,
"type_value": "show_status",
"sort": 0,
"status": 1,
"remark": "",
"create_time": "2022-06-28 09:59:03",
"update_time": "2022-06-28 09:59:03",
"delete_time": null
},
{
"id": 17,
"name": "显示",
"value": "1",
"type_id": 12,
"type_value": "show_status",
"sort": 0,
"status": 1,
"remark": "",
"create_time": "2022-06-28 09:59:10",
"update_time": "2022-06-28 09:59:10",
"delete_time": null
}
]
}
}
![](https://cdn.apifox.com/app/apidoc-image/custom/20230616/a471fbe4-8cc7-443e-aef5-0eaa31d0c10a.png)
修改于 2 年前