获取字典列表
GET
/dict_type
请求参数
Query 参数
page
string
可选
示例值:
1
page_size
string
可选
示例值:
10
dict_name
string
可选
dict_type
string
可选
status
string
可选
Header 参数
X-token
string
可选
默认值:
{{X-Token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/dict_type?page= 1&page_size= 10&dict_name=&dict_type=&status=' \
--header 'X-token: {{X-Token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
dict_type_list
array [object {9}]
必需
total
integer
必需
示例
{
"code": 0,
"message": "success",
"data": {
"dict_type_list": [
{
"dict_id": 1,
"dict_name": "系统开关",
"dict_type": "sys_normal_disable",
"status": 1,
"remark": "",
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:39:05",
"updated_at": "2023-12-29 22:06:36"
},
{
"dict_id": 2,
"dict_name": "用户性别",
"dict_type": "sys_user_sex",
"status": 1,
"remark": null,
"create_by": 1,
"update_by": null,
"created_at": "2021-08-05 11:45:23",
"updated_at": null
},
{
"dict_id": 3,
"dict_name": "菜单状态",
"dict_type": "sys_show_hide",
"status": 1,
"remark": null,
"create_by": 1,
"update_by": null,
"created_at": "2021-08-05 11:46:19",
"updated_at": null
}
],
"total": 3
}
}
修改于 2024-01-27 11:30:00