This commit is contained in:
2025-10-19 20:41:33 +08:00
parent 71afbf5ff9
commit ebaaa86f09
3 changed files with 93 additions and 138 deletions

View File

@@ -3832,7 +3832,7 @@
"BearerAuth": []
}
],
"description": "根据用户ID分页获取该用户的操作审计日志。",
"description": "根据用户ID分页获取该用户的操作审计日志。支持与通用日志查询接口相同的过滤和排序参数。",
"produces": [
"application/json"
],
@@ -3848,24 +3848,49 @@
"in": "path",
"required": true
},
{
"type": "string",
"name": "action_type",
"in": "query"
},
{
"type": "string",
"name": "end_time",
"in": "query"
},
{
"type": "string",
"name": "order_by",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "页码",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "每页大小",
"name": "page_size",
"name": "pageSize",
"in": "query"
},
{
"type": "string",
"description": "按操作类型过滤",
"name": "action_type",
"name": "start_time",
"in": "query"
},
{
"type": "string",
"name": "status",
"in": "query"
},
{
"type": "integer",
"name": "user_id",
"in": "query"
},
{
"type": "string",
"name": "username",
"in": "query"
}
],
@@ -3881,7 +3906,7 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/dto.ListHistoryResponse"
"$ref": "#/definitions/dto.ListUserActionLogResponse"
}
}
}
@@ -4356,31 +4381,6 @@
}
}
},
"dto.HistoryResponse": {
"type": "object",
"properties": {
"action_type": {
"type": "string",
"example": "更新设备"
},
"description": {
"type": "string",
"example": "设备更新成功"
},
"target_resource": {},
"time": {
"type": "string"
},
"user_id": {
"type": "integer",
"example": 101
},
"username": {
"type": "string",
"example": "testuser"
}
}
},
"dto.ListDeviceCommandLogResponse": {
"type": "object",
"properties": {
@@ -4409,21 +4409,6 @@
}
}
},
"dto.ListHistoryResponse": {
"type": "object",
"properties": {
"history": {
"type": "array",
"items": {
"$ref": "#/definitions/dto.HistoryResponse"
}
},
"total": {
"type": "integer",
"example": 100
}
}
},
"dto.ListMedicationLogResponse": {
"type": "object",
"properties": {