查看日志列表
POST
/api/v1/system-manage/logs/all请求参数
Body 参数application/json
current
integer
页码
size
integer
每页数量
logType
string
日志类型
1 API日志, 2 用户日志, 3 管理日志, 4 系统日志
byUser
null
关联用户
用户id
logDetailType
null
日志详细
requestUrl
null
请求URL
timeRange
array[string]
创建时间
必须为两个列表项
responseCode
null
业务状态码
xRequestId
null
x-request-id
示例
{
"current": 1,
"size": 20,
"logType": "2",
"byUser": null,
"logDetailType": null,
"requestUrl": null,
"timeRange": [
"2024-12-23 00:00:00",
"2024-12-23 23:59:59"
],
"responseCode": null,
"xRequestId": null
}
示例代码
返回响应
成功(200)
Validation Error(422)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
msg
string
必需
data
object
必需
records
array [object {7}]
必需
total
integer
必需
current
integer
必需
size
integer
必需
示例
{
"code": "0000",
"msg": "OK",
"data": {
"records": [
{
"logDetailType": null,
"id": 75,
"createTime": "2024-05-18 15:29:32",
"logType": "1",
"requestUrl": "http://127.0.0.1:9999/api/v1/auth/getUserInfo",
"responseCode": "0000",
"logUser": "Request"
},
{
"logDetailType": null,
"id": 73,
"createTime": "2024-05-18 15:29:24",
"logType": "1",
"requestUrl": "http://127.0.0.1:9999/api/v1/auth/login",
"responseCode": "0000",
"logUser": "Request"
}
],
"total": 2,
"current": 1,
"size": 10
}
}
最后修改时间: 2 个月前