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

@@ -322,24 +322,6 @@ definitions:
remarks:
type: string
type: object
dto.HistoryResponse:
properties:
action_type:
example: 更新设备
type: string
description:
example: 设备更新成功
type: string
target_resource: {}
time:
type: string
user_id:
example: 101
type: integer
username:
example: testuser
type: string
type: object
dto.ListDeviceCommandLogResponse:
properties:
list:
@@ -358,16 +340,6 @@ definitions:
pagination:
$ref: '#/definitions/dto.PaginationDTO'
type: object
dto.ListHistoryResponse:
properties:
history:
items:
$ref: '#/definitions/dto.HistoryResponse'
type: array
total:
example: 100
type: integer
type: object
dto.ListMedicationLogResponse:
properties:
list:
@@ -4055,26 +4027,39 @@ paths:
- 用户管理
/api/v1/users/{id}/history:
get:
description: 根据用户ID分页获取该用户的操作审计日志。
description: 根据用户ID分页获取该用户的操作审计日志。支持与通用日志查询接口相同的过滤和排序参数。
parameters:
- description: 用户ID
in: path
name: id
required: true
type: integer
- default: 1
description: 页码
in: query
- in: query
name: action_type
type: string
- in: query
name: end_time
type: string
- in: query
name: order_by
type: string
- in: query
name: page
type: integer
- default: 10
description: 每页大小
in: query
name: page_size
- in: query
name: pageSize
type: integer
- description: 按操作类型过滤
in: query
name: action_type
- in: query
name: start_time
type: string
- in: query
name: status
type: string
- in: query
name: user_id
type: integer
- in: query
name: username
type: string
produces:
- application/json
@@ -4086,7 +4071,7 @@ paths:
- $ref: '#/definitions/controller.Response'
- properties:
data:
$ref: '#/definitions/dto.ListHistoryResponse'
$ref: '#/definitions/dto.ListUserActionLogResponse'
type: object
security:
- BearerAuth: []