Add operation log

This commit is contained in:
SwallowGG
2023-10-14 16:47:26 +08:00
parent 709fc8536f
commit ce0ccd15cf
12 changed files with 197 additions and 13 deletions

View File

@ -66,4 +66,5 @@ public class OperationLogController {
return operationLogService.create(param);
}
}

View File

@ -16,4 +16,19 @@ public class OperationLogQueryRequest extends PageQueryRequest {
* 模糊词搜索
*/
private String searchKey;
/**
* 数据源id
*/
private Long dataSourceId;
/**
* 数据库名称
*/
private String databaseName;
/**
* schema名称
*/
private String schemaName;
}

View File

@ -45,4 +45,34 @@ public class OperationLogVO {
* ddl语言类型
*/
private String type;
/**
* ddl内容
*/
private String ddl;
/**
* 状态
*/
private String status;
/**
* 操作行数
*/
private Long operationRows;
/**
* 使用时长
*/
private Long useTime;
/**
* 扩展信息
*/
private String extendInfo;
/**
* schema名称
*/
private String schemaName;
}