分页查询字典项
开发中
GET
/admin/dict/item/page
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
dictId
string
字典id
示例值:
13
dictType
string
字典类型
示例值:
channel_type
current
string
当前页码
示例值:
1
size
string
每页数量
示例值:
10
Header 参数
Authorization
string
必需
示例值:
Bearer 548c5d5d-f951-49f2-8e83-e688a57a9bea
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://devapi.maicanbao.com/admin/dict/item/page?dictId=13&dictType=channel_type¤t=1&size=10' \
--header 'Authorization: Bearer 548c5d5d-f951-49f2-8e83-e688a57a9bea'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
null
必需
data
object
必需
records
array [object {12}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
pages
integer
必需
ok
boolean
必需
示例
{
"code": 0,
"msg": null,
"data": {
"records": [
{
"id": "39",
"dictId": "14",
"label": "密码模式",
"dictType": "grant_types",
"description": "支持oauth密码模式",
"sortOrder": 0,
"createBy": " ",
"updateBy": " ",
"createTime": "2019-08-13 07:35:28",
"updateTime": "2019-08-13 07:35:28",
"remarks": null,
"delFlag": "0",
"value": "password"
},
{
"id": "40",
"dictId": "14",
"label": "授权码模式",
"dictType": "grant_types",
"description": "oauth2 授权码模式",
"sortOrder": 1,
"createBy": " ",
"updateBy": " ",
"createTime": "2019-08-13 07:36:07",
"updateTime": "2019-08-13 07:36:07",
"remarks": null,
"delFlag": "0",
"value": "authorization_code"
},
{
"id": "41",
"dictId": "14",
"label": "客户端模式",
"dictType": "grant_types",
"description": "oauth2 客户端模式",
"sortOrder": 2,
"createBy": " ",
"updateBy": " ",
"createTime": "2019-08-13 07:36:30",
"updateTime": "2019-08-13 07:36:30",
"remarks": null,
"delFlag": "0",
"value": "client_credentials"
},
{
"id": "42",
"dictId": "14",
"label": "刷新模式",
"dictType": "grant_types",
"description": "oauth2 刷新token",
"sortOrder": 3,
"createBy": " ",
"updateBy": " ",
"createTime": "2019-08-13 07:36:54",
"updateTime": "2019-08-13 07:36:54",
"remarks": null,
"delFlag": "0",
"value": "refresh_token"
},
{
"id": "43",
"dictId": "14",
"label": "简化模式",
"dictType": "grant_types",
"description": "oauth2 简化模式",
"sortOrder": 4,
"createBy": " ",
"updateBy": " ",
"createTime": "2019-08-13 07:39:32",
"updateTime": "2019-08-13 07:39:32",
"remarks": null,
"delFlag": "0",
"value": "implicit"
},
{
"id": "57",
"dictId": "14",
"label": "mobile",
"dictType": "grant_types",
"description": "移动端登录",
"sortOrder": 5,
"createBy": "admin",
"updateBy": " ",
"createTime": "2023-01-29 17:21:42",
"updateTime": null,
"remarks": null,
"delFlag": "0",
"value": "mobile"
}
],
"total": 6,
"size": 10,
"current": 1,
"pages": 1
},
"ok": true
}