操作日志分页查询
GET
/api/v1/operation_logs操作日志分页查询
请求参数
Query 参数
page
integer
页码
page_size
integer
每页数量
ip
string
可选
请求IP(模糊匹配)
start_time
string
可选
开始日期(国际标准ISO 8601)2024-04-12T00:00:00.000Z
end_time
string
可选
结束日期(国际标准ISO 8601)2024-04-12T00:00:00.000Z
username
string
可选
操作用户名(模糊匹配)
method
string
可选
方法 POST PUT DELETE
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
list
array [object {12}]
必需
total
integer
必需
示例
成功示例
{
"code": 200,
"message": "Get UiElements list successfully",
"data": {
"list": [
{
"id": "1a6ae3f6-db46-a7f9-7b47-00ed1481f7f3",
"ip": "127.0.0.1",
"path": "/api/v1/file/up",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-01-27T23:38:05.01568Z",
"latency": 9,
"request_message": "微信图片_20231217221753.jpg:d_plugin",
"response_message": "{\"code\":200,\"message\":\"上传成功\",\"data\":{\"path\":\"./files/d_plugin/2024-01-27/b1561a70da1af2395483216b6a982eea.jpg\"}}",
"tenant_id": "",
"remark": null
},
{
"id": "5647a251-f1db-fb06-93b6-12e96d0c3bcf",
"ip": "127.0.0.1",
"path": "/api/v1/dict/column",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": null,
"created_at": "2024-01-27T22:09:07.235295Z",
"latency": 5,
"request_message": "{\n \"dict_code\": \"string\",\n \"dict_value\": \"string\",\n \"remark\": \"string\"\n}",
"response_message": "{\"code\":200,\"message\":\"Dict created successfully\"}",
"tenant_id": "",
"remark": null
},
{
"id": "8c6fc54f-5b04-2228-5d4f-2bfd009bf1d6",
"ip": "127.0.0.1",
"path": "/api/v1/dict/column",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": null,
"created_at": "2024-01-27T22:15:35.693097Z",
"latency": 2,
"request_message": "{\n \"dict_code\": \"string1\",\n \"dict_value\": \"string1\",\n \"remark\": \"string\"\n}",
"response_message": "{\"code\":200,\"message\":\"Dict created successfully\"}",
"tenant_id": "",
"remark": null
},
{
"id": "5f0984da-d1a5-8fd8-0f2b-6ce3befce839",
"ip": "127.0.0.1",
"path": "/api/v1/file/up",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-01-27T23:20:00.657605Z",
"latency": 3,
"request_message": "multipart/form-data",
"response_message": "{\"code\":200,\"message\":\"上传成功\",\"data\":{\"path\":\"./files/d_plugin/2024-01-27/dffee0b3c1dce922c1280f4f6a6b1943.jpg\"}}",
"tenant_id": "",
"remark": null
},
{
"id": "34e1618e-3289-2e04-91e3-0d677bf0c6c1",
"ip": "106.45.10.21",
"path": "/api/v1/user",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-02-01T13:57:11.467219Z",
"latency": 2,
"request_message": "{\"email\":\"\",\"userName\":\"\",\"userStatus\":null}",
"response_message": "{\"code\":422,\"message\":\"Field 'Email' is required\"}",
"tenant_id": "",
"remark": null
},
{
"id": "f99d88ce-b6bc-2b44-b7d5-c553e25699f9",
"ip": "106.45.10.21",
"path": "/api/v1/user",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-02-01T13:57:19.377233Z",
"latency": 0,
"request_message": "{\"email\":\"\",\"userName\":\"\",\"userStatus\":null}",
"response_message": "{\"code\":422,\"message\":\"Field 'Email' is required\"}",
"tenant_id": "",
"remark": null
},
{
"id": "30666770-37ab-f649-6f0a-11cc871e7c18",
"ip": "106.45.10.21",
"path": "/api/v1/user",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-02-01T13:59:15.5792Z",
"latency": 0,
"request_message": "{\"email\":\"\",\"userName\":\"\",\"userStatus\":null}",
"response_message": "{\"code\":422,\"message\":\"Field 'Email' is required\"}",
"tenant_id": "",
"remark": null
},
{
"id": "eefa61a7-2368-12fc-ad40-0c889cf48ed1",
"ip": "106.45.10.21",
"path": "/api/v1/user",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-02-01T15:59:59.115503Z",
"latency": 819,
"request_message": "{\"name\":\"测试\",\"gender\":\"1\",\"phone_number\":\"15555555555\",\"email\":\"132@qq.com\",\"password\":\"123456\",\"confirmPwd\":\"123456\",\"remark\":\"ceshi \"}",
"response_message": "{\"code\":200,\"message\":\"User created successfully\"}",
"tenant_id": "",
"remark": null
},
{
"id": "5a9e897e-569b-92fd-dacc-d4f4d60e7c50",
"ip": "106.45.10.21",
"path": "/api/v1/user",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-02-01T16:14:11.575341Z",
"latency": 623,
"request_message": "{\"name\":\"测试\",\"gender\":\"1\",\"phone_number\":\"13322222222\",\"email\":\"123@qq.com\",\"password\":\"123456\",\"confirmPwd\":\"123456\",\"remark\":\"1231231\"}",
"response_message": "{\"code\":200,\"message\":\"User created successfully\"}",
"tenant_id": "",
"remark": null
},
{
"id": "5544b927-8533-8d78-cfd1-1471444ff54f",
"ip": "106.45.10.21",
"path": "/api/v1/user",
"user_id": "r5663359-54f3-e23b-801b-e3b82446378e",
"name": "POST",
"created_at": "2024-02-01T16:19:09.024801Z",
"latency": 2,
"request_message": "{\"name\":\"测试1\",\"gender\":null,\"phone_number\":\"15555555555\",\"email\":\"\",\"password\":\"123456\",\"confirmPwd\":\"123456\",\"remark\":\"\"}",
"response_message": "{\"code\":422,\"message\":\"Field 'Email' is required\"}",
"tenant_id": "",
"remark": null
}
],
"total": 1298
}
}
最后修改时间: 3 个月前