mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	docs: 完善系统监控模块相关接口文档信息
This commit is contained in:
		| @@ -46,14 +46,14 @@ public class LoginLogQuery implements Serializable { | ||||
|     /** | ||||
|      * 登录状态(1:成功,2:失败) | ||||
|      */ | ||||
|     @Schema(description = "登录状态(1:成功,2:失败)") | ||||
|     @Schema(description = "登录状态(1:成功,2:失败)", example = "1") | ||||
|     @Query | ||||
|     private Integer status; | ||||
|  | ||||
|     /** | ||||
|      * 登录时间 | ||||
|      */ | ||||
|     @Schema(description = "登录时间") | ||||
|     @Schema(description = "登录时间", example = "2023-08-08 00:00:00,2023-08-08 23:59:59") | ||||
|     @Query(type = QueryTypeEnum.BETWEEN) | ||||
|     @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN) | ||||
|     private List<Date> createTime; | ||||
|   | ||||
| @@ -46,21 +46,21 @@ public class OperationLogQuery implements Serializable { | ||||
|     /** | ||||
|      * 操作内容 | ||||
|      */ | ||||
|     @Schema(description = "操作内容") | ||||
|     @Schema(description = "操作内容", example = "新增数据") | ||||
|     @Query(type = QueryTypeEnum.INNER_LIKE) | ||||
|     private String description; | ||||
|  | ||||
|     /** | ||||
|      * 操作状态(1:成功,2:失败) | ||||
|      */ | ||||
|     @Schema(description = "操作状态(1:成功,2:失败)") | ||||
|     @Schema(description = "操作状态(1:成功,2:失败)", example = "1") | ||||
|     @Query | ||||
|     private Integer status; | ||||
|  | ||||
|     /** | ||||
|      * 操作时间 | ||||
|      */ | ||||
|     @Schema(description = "操作时间") | ||||
|     @Schema(description = "操作时间", example = "2023-08-08 00:00:00,2023-08-08 23:59:59") | ||||
|     @Query(type = QueryTypeEnum.BETWEEN) | ||||
|     @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN) | ||||
|     private List<Date> createTime; | ||||
| @@ -68,7 +68,7 @@ public class OperationLogQuery implements Serializable { | ||||
|     /** | ||||
|      * 操作人 | ||||
|      */ | ||||
|     @Schema(description = "操作人") | ||||
|     @Schema(description = "操作人", example = "张三") | ||||
|     @Query(property = "createUser") | ||||
|     private Long uid; | ||||
| } | ||||
|   | ||||
| @@ -46,7 +46,7 @@ public class SystemLogQuery implements Serializable { | ||||
|     /** | ||||
|      * 创建时间 | ||||
|      */ | ||||
|     @Schema(description = "创建时间") | ||||
|     @Schema(description = "创建时间", example = "2023-08-08 00:00:00,2023-08-08 23:59:59") | ||||
|     @Query(type = QueryTypeEnum.BETWEEN) | ||||
|     @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN) | ||||
|     private List<Date> createTime; | ||||
|   | ||||
| @@ -39,7 +39,7 @@ public class LogVO implements Serializable { | ||||
|     /** | ||||
|      * ID | ||||
|      */ | ||||
|     @Schema(description = "ID") | ||||
|     @Schema(description = "ID", example = "1") | ||||
|     private Long id; | ||||
|  | ||||
|     /** | ||||
| @@ -51,12 +51,12 @@ public class LogVO implements Serializable { | ||||
|     /** | ||||
|      * 创建人 | ||||
|      */ | ||||
|     @Schema(description = "创建人") | ||||
|     @Schema(description = "创建人", example = "张三") | ||||
|     private String createUserString; | ||||
|  | ||||
|     /** | ||||
|      * 创建时间 | ||||
|      */ | ||||
|     @Schema(description = "创建时间") | ||||
|     @Schema(description = "创建时间", example = "2023-08-08 08:08:08") | ||||
|     private LocalDateTime createTime; | ||||
| } | ||||
|   | ||||
| @@ -37,31 +37,31 @@ public class LoginLogVO extends LogVO { | ||||
|     /** | ||||
|      * 登录行为 | ||||
|      */ | ||||
|     @Schema(description = "登录行为") | ||||
|     @Schema(description = "登录行为", example = "用户登录") | ||||
|     private String description; | ||||
|  | ||||
|     /** | ||||
|      * 登录状态(1:成功,2:失败) | ||||
|      */ | ||||
|     @Schema(description = "登录状态(1:成功,2:失败)", type = "Integer", allowableValues = {"1", "2"}) | ||||
|     @Schema(description = "登录状态(1:成功,2:失败)", type = "Integer", allowableValues = {"1", "2"}, example = "1") | ||||
|     private LogStatusEnum status; | ||||
|  | ||||
|     /** | ||||
|      * 登录 IP | ||||
|      */ | ||||
|     @Schema(description = "登录 IP") | ||||
|     @Schema(description = "登录 IP", example = "192.168.0.1") | ||||
|     private String clientIp; | ||||
|  | ||||
|     /** | ||||
|      * 登录地点 | ||||
|      */ | ||||
|     @Schema(description = "登录地点") | ||||
|     @Schema(description = "登录地点", example = "中国北京北京市") | ||||
|     private String location; | ||||
|  | ||||
|     /** | ||||
|      * 浏览器 | ||||
|      */ | ||||
|     @Schema(description = "浏览器") | ||||
|     @Schema(description = "浏览器", example = "Chrome 115.0.0.0") | ||||
|     private String browser; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -37,37 +37,37 @@ public class OperationLogVO extends LogVO { | ||||
|     /** | ||||
|      * 操作内容 | ||||
|      */ | ||||
|     @Schema(description = "操作内容") | ||||
|     @Schema(description = "操作内容", example = "新增数据") | ||||
|     private String description; | ||||
|  | ||||
|     /** | ||||
|      * 所属模块 | ||||
|      */ | ||||
|     @Schema(description = "所属模块") | ||||
|     @Schema(description = "所属模块", example = "部门管理") | ||||
|     private String module; | ||||
|  | ||||
|     /** | ||||
|      * 操作状态(1成功 2失败) | ||||
|      */ | ||||
|     @Schema(description = "操作状态(1:成功,2:失败)", type = "Integer", allowableValues = {"1", "2"}) | ||||
|     @Schema(description = "操作状态(1:成功,2:失败)", type = "Integer", allowableValues = {"1", "2"}, example = "1") | ||||
|     private LogStatusEnum status; | ||||
|  | ||||
|     /** | ||||
|      * 操作IP | ||||
|      */ | ||||
|     @Schema(description = "操作IP") | ||||
|     @Schema(description = "操作IP", example = "192.168.0.1") | ||||
|     private String clientIp; | ||||
|  | ||||
|     /** | ||||
|      * 操作地点 | ||||
|      */ | ||||
|     @Schema(description = "操作地点") | ||||
|     @Schema(description = "操作地点", example = "中国北京北京市") | ||||
|     private String location; | ||||
|  | ||||
|     /** | ||||
|      * 浏览器 | ||||
|      */ | ||||
|     @Schema(description = "浏览器") | ||||
|     @Schema(description = "浏览器", example = "Chrome 115.0.0.0") | ||||
|     private String browser; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -35,66 +35,66 @@ public class SystemLogDetailVO extends LogVO { | ||||
|     /** | ||||
|      * 状态码 | ||||
|      */ | ||||
|     @Schema(description = "状态码") | ||||
|     @Schema(description = "状态码", example = "200") | ||||
|     private Integer statusCode; | ||||
|  | ||||
|     /** | ||||
|      * 请求方式 | ||||
|      */ | ||||
|     @Schema(description = "请求方式") | ||||
|     @Schema(description = "请求方式", example = "POST") | ||||
|     private String requestMethod; | ||||
|  | ||||
|     /** | ||||
|      * 请求 URL | ||||
|      */ | ||||
|     @Schema(description = "请求 URL") | ||||
|     @Schema(description = "请求 URL", example = "http://api.charles7c.top/system/dept") | ||||
|     private String requestUrl; | ||||
|  | ||||
|     /** | ||||
|      * 请求头 | ||||
|      */ | ||||
|     @Schema(description = "请求头") | ||||
|     @Schema(description = "请求头", example = "{\"Origin\": \"https://cnadmin.charles7c.top\",...}") | ||||
|     private String requestHeaders; | ||||
|  | ||||
|     /** | ||||
|      * 请求体 | ||||
|      */ | ||||
|     @Schema(description = "请求体") | ||||
|     @Schema(description = "请求体", example = "{\"name\": \"测试部\",...}") | ||||
|     private String requestBody; | ||||
|  | ||||
|     /** | ||||
|      * 响应头 | ||||
|      */ | ||||
|     @Schema(description = "响应头") | ||||
|     @Schema(description = "响应头", example = "{\"Content-Type\": [\"application/json\"],...}") | ||||
|     private String responseHeaders; | ||||
|  | ||||
|     /** | ||||
|      * 响应体 | ||||
|      */ | ||||
|     @Schema(description = "响应体") | ||||
|     @Schema(description = "响应体", example = "{\"success\":true},...") | ||||
|     private String responseBody; | ||||
|  | ||||
|     /** | ||||
|      * 客户端IP | ||||
|      */ | ||||
|     @Schema(description = "客户端IP") | ||||
|     @Schema(description = "客户端IP", example = "192.168.0.1") | ||||
|     private String clientIp; | ||||
|  | ||||
|     /** | ||||
|      * IP归属地 | ||||
|      */ | ||||
|     @Schema(description = "IP归属地") | ||||
|     @Schema(description = "IP归属地", example = "中国北京北京市") | ||||
|     private String location; | ||||
|  | ||||
|     /** | ||||
|      * 浏览器 | ||||
|      */ | ||||
|     @Schema(description = "浏览器") | ||||
|     @Schema(description = "浏览器", example = "Chrome 115.0.0.0") | ||||
|     private String browser; | ||||
|  | ||||
|     /** | ||||
|      * 请求耗时(ms) | ||||
|      */ | ||||
|     @Schema(description = "请求耗时(ms)") | ||||
|     @Schema(description = "请求耗时(ms)", example = "58") | ||||
|     private Long elapsedTime; | ||||
| } | ||||
|   | ||||
| @@ -35,43 +35,43 @@ public class SystemLogVO extends LogVO { | ||||
|     /** | ||||
|      * 状态码 | ||||
|      */ | ||||
|     @Schema(description = "状态码") | ||||
|     @Schema(description = "状态码", example = "200") | ||||
|     private Integer statusCode; | ||||
|  | ||||
|     /** | ||||
|      * 请求方式 | ||||
|      */ | ||||
|     @Schema(description = "请求方式") | ||||
|     @Schema(description = "请求方式", example = "POST") | ||||
|     private String requestMethod; | ||||
|  | ||||
|     /** | ||||
|      * 请求 URL | ||||
|      */ | ||||
|     @Schema(description = "请求 URL") | ||||
|     @Schema(description = "请求 URL", example = "http://api.charles7c.top/system/dept") | ||||
|     private String requestUrl; | ||||
|  | ||||
|     /** | ||||
|      * 客户端IP | ||||
|      */ | ||||
|     @Schema(description = "客户端IP") | ||||
|     @Schema(description = "客户端IP", example = "192.168.0.1") | ||||
|     private String clientIp; | ||||
|  | ||||
|     /** | ||||
|      * IP归属地 | ||||
|      */ | ||||
|     @Schema(description = "IP归属地") | ||||
|     @Schema(description = "IP归属地", example = "中国北京北京市") | ||||
|     private String location; | ||||
|  | ||||
|     /** | ||||
|      * 浏览器 | ||||
|      */ | ||||
|     @Schema(description = "浏览器") | ||||
|     @Schema(description = "浏览器", example = "Chrome 115.0.0.0") | ||||
|     private String browser; | ||||
|  | ||||
|     /** | ||||
|      * 请求耗时(ms) | ||||
|      */ | ||||
|     @Schema(description = "请求耗时(ms)") | ||||
|     @Schema(description = "请求耗时(ms)", example = "58") | ||||
|     private Long elapsedTime; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -89,7 +89,7 @@ public class UserInfoVO implements Serializable { | ||||
|     /** | ||||
|      * 描述 | ||||
|      */ | ||||
|     @Schema(description = "描述", example = "张三用户") | ||||
|     @Schema(description = "描述", example = "张三描述信息") | ||||
|     private String description; | ||||
|  | ||||
|     /** | ||||
| @@ -126,13 +126,13 @@ public class UserInfoVO implements Serializable { | ||||
|     /** | ||||
|      * 权限码集合 | ||||
|      */ | ||||
|     @Schema(description = "权限码集合", example = "[system:user:list,system:user:add]") | ||||
|     @Schema(description = "权限码集合", example = "[\"system:user:list\",\"system:user:add\"]") | ||||
|     private Set<String> permissions; | ||||
|  | ||||
|     /** | ||||
|      * 角色编码集合 | ||||
|      */ | ||||
|     @Schema(description = "角色编码集合", example = "[admin,test]") | ||||
|     @Schema(description = "角色编码集合", example = "[\"test\"]") | ||||
|     private Set<String> roles; | ||||
|  | ||||
|     public String getPhone() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Bull-BCLS
					Bull-BCLS