字典数据
开发中GET
/adminapi/config/dict根据字典类型获取字典数据
请求参数
Query Params
type
string
optional
类型值
Example:
level,show_status
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
code
integer
required
show
integer
required
msg
string
required
data
object
required
level
array [object {11}]
required
show_status
array [object {11}]
required
Example
{
"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
}
]
}
}
Last modified: 2 年前