swag
This commit is contained in:
83
docs/docs.go
83
docs/docs.go
@@ -3840,7 +3840,7 @@ const docTemplate = `{
|
|||||||
"BearerAuth": []
|
"BearerAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "根据用户ID,分页获取该用户的操作审计日志。",
|
"description": "根据用户ID,分页获取该用户的操作审计日志。支持与通用日志查询接口相同的过滤和排序参数。",
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -3856,24 +3856,49 @@ const docTemplate = `{
|
|||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"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",
|
"type": "integer",
|
||||||
"default": 1,
|
|
||||||
"description": "页码",
|
|
||||||
"name": "page",
|
"name": "page",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 10,
|
"name": "pageSize",
|
||||||
"description": "每页大小",
|
|
||||||
"name": "page_size",
|
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "按操作类型过滤",
|
"name": "start_time",
|
||||||
"name": "action_type",
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"name": "status",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"name": "user_id",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"name": "username",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3889,7 +3914,7 @@ const docTemplate = `{
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"data": {
|
"data": {
|
||||||
"$ref": "#/definitions/dto.ListHistoryResponse"
|
"$ref": "#/definitions/dto.ListUserActionLogResponse"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4364,31 +4389,6 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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": {
|
"dto.ListDeviceCommandLogResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -4417,21 +4417,6 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dto.ListHistoryResponse": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"history": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/definitions/dto.HistoryResponse"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"total": {
|
|
||||||
"type": "integer",
|
|
||||||
"example": 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dto.ListMedicationLogResponse": {
|
"dto.ListMedicationLogResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -3832,7 +3832,7 @@
|
|||||||
"BearerAuth": []
|
"BearerAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "根据用户ID,分页获取该用户的操作审计日志。",
|
"description": "根据用户ID,分页获取该用户的操作审计日志。支持与通用日志查询接口相同的过滤和排序参数。",
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -3848,24 +3848,49 @@
|
|||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"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",
|
"type": "integer",
|
||||||
"default": 1,
|
|
||||||
"description": "页码",
|
|
||||||
"name": "page",
|
"name": "page",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 10,
|
"name": "pageSize",
|
||||||
"description": "每页大小",
|
|
||||||
"name": "page_size",
|
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "按操作类型过滤",
|
"name": "start_time",
|
||||||
"name": "action_type",
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"name": "status",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"name": "user_id",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"name": "username",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3881,7 +3906,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"data": {
|
"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": {
|
"dto.ListDeviceCommandLogResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"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": {
|
"dto.ListMedicationLogResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -322,24 +322,6 @@ definitions:
|
|||||||
remarks:
|
remarks:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
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:
|
dto.ListDeviceCommandLogResponse:
|
||||||
properties:
|
properties:
|
||||||
list:
|
list:
|
||||||
@@ -358,16 +340,6 @@ definitions:
|
|||||||
pagination:
|
pagination:
|
||||||
$ref: '#/definitions/dto.PaginationDTO'
|
$ref: '#/definitions/dto.PaginationDTO'
|
||||||
type: object
|
type: object
|
||||||
dto.ListHistoryResponse:
|
|
||||||
properties:
|
|
||||||
history:
|
|
||||||
items:
|
|
||||||
$ref: '#/definitions/dto.HistoryResponse'
|
|
||||||
type: array
|
|
||||||
total:
|
|
||||||
example: 100
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
dto.ListMedicationLogResponse:
|
dto.ListMedicationLogResponse:
|
||||||
properties:
|
properties:
|
||||||
list:
|
list:
|
||||||
@@ -4055,26 +4027,39 @@ paths:
|
|||||||
- 用户管理
|
- 用户管理
|
||||||
/api/v1/users/{id}/history:
|
/api/v1/users/{id}/history:
|
||||||
get:
|
get:
|
||||||
description: 根据用户ID,分页获取该用户的操作审计日志。
|
description: 根据用户ID,分页获取该用户的操作审计日志。支持与通用日志查询接口相同的过滤和排序参数。
|
||||||
parameters:
|
parameters:
|
||||||
- description: 用户ID
|
- description: 用户ID
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: id
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: integer
|
||||||
- default: 1
|
- in: query
|
||||||
description: 页码
|
name: action_type
|
||||||
in: query
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: end_time
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: order_by
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
name: page
|
name: page
|
||||||
type: integer
|
type: integer
|
||||||
- default: 10
|
- in: query
|
||||||
description: 每页大小
|
name: pageSize
|
||||||
in: query
|
|
||||||
name: page_size
|
|
||||||
type: integer
|
type: integer
|
||||||
- description: 按操作类型过滤
|
- in: query
|
||||||
in: query
|
name: start_time
|
||||||
name: action_type
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: status
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: user_id
|
||||||
|
type: integer
|
||||||
|
- in: query
|
||||||
|
name: username
|
||||||
type: string
|
type: string
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
@@ -4086,7 +4071,7 @@ paths:
|
|||||||
- $ref: '#/definitions/controller.Response'
|
- $ref: '#/definitions/controller.Response'
|
||||||
- properties:
|
- properties:
|
||||||
data:
|
data:
|
||||||
$ref: '#/definitions/dto.ListHistoryResponse'
|
$ref: '#/definitions/dto.ListUserActionLogResponse'
|
||||||
type: object
|
type: object
|
||||||
security:
|
security:
|
||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
|
|||||||
Reference in New Issue
Block a user