角色组列表
GET
/user/groups请求参数
Query 参数
page
integer
页码
per_page
integer
每页展示数量
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
message
string
必需
data
object
必需
current_page
integer
必需
data
array [object {5}]
必需
first_page_url
string
必需
from
integer
必需
last_page
integer
必需
last_page_url
string
必需
links
array [object {3}]
必需
next_page_url
null
必需
path
string
必需
per_page
integer
必需
prev_page_url
null
必需
to
integer
必需
total
integer
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"from": "system",
"expired_at": null,
"created_at": "2024-08-31T16:32:34.000000Z",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组",
"options": {
"max_upload_size": 5120,
"file_expire_seconds": 0,
"limit_concurrent_upload": 4,
"limit_per_minute": 20,
"limit_per_hour": 100,
"limit_per_day": 300,
"limit_per_week": 600,
"limit_per_month": 1000,
"allow_file_types": [
"jpg",
"jpeg",
"webp",
"avif",
"bmp",
"gif",
"png",
"tif",
"tiff",
"jp2",
"j2k",
"jpf",
"jpm",
"jpg2",
"j2c",
"jpc",
"jpx",
"heic",
"heif"
]
},
"is_default": true,
"is_guest": true
}
}
],
"first_page_url": "http://127.0.0.1:8000/api/v2/user/groups?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/api/v2/user/groups?page=1",
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/user/groups?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/api/v2/user/groups",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
},
"time": 1725504447
}
最后修改时间: 1 个月前