获取日志分页列表
开发中
POST
/api/OperationLog/GetList
请求参数
Body 参数application/json
cata
integer
模块ID
foreignKey
string
业务数据ID
actionDesc
string
操作类型
operationUser
string
操作人
search
string
日志内容
logTimeStart
string
开始日期
logTimeEnd
string
截止日期
pagination
object
分页信息
rows
integer
必需
page
integer
必需
sidx
string
必需
sord
string
必需
records
integer
必需
示例
{
"cata": 100,
"foreignKey": "string",
"actionDesc": "string",
"operationUser": "string",
"search": "string",
"logTimeStart": "2025-03-10T01:42:36.653Z",
"logTimeEnd": "2025-03-10T01:42:36.653Z",
"pagination": {
"rows": 0,
"page": 0,
"sidx": "string",
"sord": "string",
"records": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/OperationLog/GetList' \
--header 'Content-Type: application/json' \
--data-raw '{
"cata": 100,
"foreignKey": "string",
"actionDesc": "string",
"operationUser": "string",
"search": "string",
"logTimeStart": "2025-03-10T01:42:36.653Z",
"logTimeEnd": "2025-03-10T01:42:36.653Z",
"pagination": {
"rows": 0,
"page": 0,
"sidx": "string",
"sord": "string",
"records": 0
}
}'
返回响应
🟢200成功
application/json
Body
state
integer
必需
message
null
必需
data
object
必需
rows
array [object {17}]
必需
total
integer
必需
示例
{
"state": 200,
"message": null,
"data": {
"rows": [
{
"ID": 2,
"ForeignTable": "Host",
"ForeignKey": "3dd6b51a-3007-4de2-82c2-d318b05833a9",
"ForeignParentTable": null,
"ForeignParentKey": null,
"OperationUserId": null,
"OperationUserName": null,
"ActionDesc": "编辑",
"LogTime": "2025-03-08 18:46:47.100",
"Content": "主机名称:liujk 192.168.50.109,分组名称:内网",
"BeforeContent": null,
"AfterContent": "{\"ID\":\"3dd6b51a-3007-4de2-82c2-d318b05833a9\",\"GroupID\":\"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\"Name\":\"liujk 192.168.50.109\",\"ServiceUrl\":\"http://192.168.50.109:9601\",\"Status\":0,\"AppKey\":\"e2764b6a12f045b4960b71f5093dee51\",\"SecretKey\":\"6a0064e2bad145babd2adafeaec3dcc5\",\"Remark\":\"http://192.168.50.109:9601\",\"IsDeleted\":false,\"CreateTime\":\"2024-01-12T00:00:00\",\"CreateUserId\":null,\"DeleteTime\":\"2024-02-28T08:44:26.373\",\"DeleteUserId\":\"013793e0-8182-44e6-92b5-3631c788043c\",\"ForwardRule\":[],\"Group\":{\"ID\":\"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\"Name\":\"内网\",\"Remark\":\"\",\"OrderNum\":10,\"IsDeleted\":false,\"CreateTime\":\"2024-01-10T14:54:16.003\",\"CreateUserId\":\"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\"DeleteTime\":null,\"DeleteUserId\":null,\"Host\":[]},\"HostDatabaseServer\":[],\"HostInfo\":null,\"HostLog\":[],\"ProductInstance\":[],\"SaasApp\":[],\"SetupTask\":[]}",
"Remark": null,
"CreateTime": "2025-03-08 18:46:47.113",
"CreateUserId": null,
"Cata": 101,
"CataDesc": "云主机"
},
{
"ID": 1,
"ForeignTable": "Group",
"ForeignKey": "ad5a3718-097c-468b-b121-6ee966143ff8",
"ForeignParentTable": null,
"ForeignParentKey": null,
"OperationUserId": "013793e0-8182-44e6-92b5-3631c788043c",
"OperationUserName": "hitek",
"ActionDesc": "编辑",
"LogTime": "2025-03-08 18:46:03.837",
"Content": "分组名称:华为云",
"BeforeContent": null,
"AfterContent": "{\"ID\":\"ad5a3718-097c-468b-b121-6ee966143ff8\",\"Name\":\"华为云\",\"Remark\":\"\",\"OrderNum\":20,\"IsDeleted\":false,\"CreateTime\":\"2024-02-20T14:41:06.263\",\"CreateUserId\":\"013793e0-8182-44e6-92b5-3631c788043c\",\"DeleteTime\":null,\"DeleteUserId\":null,\"Host\":[]}",
"Remark": null,
"CreateTime": "2025-03-08 18:46:03.847",
"CreateUserId": "013793e0-8182-44e6-92b5-3631c788043c",
"Cata": 100,
"CataDesc": "云主机分组"
}
],
"total": 2
}
}
修改于 2025-03-10 01:55:16