添加操作日志模块.

This commit is contained in:
lijiahang
2023-10-09 18:48:18 +08:00
parent fea28e018c
commit a1477e9614
17 changed files with 94 additions and 18 deletions

View File

@@ -134,6 +134,11 @@
<artifactId>orion-ops-spring-boot-starter-test</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
<version>${revision}</version>
</dependency>
<!-- websocket -->
<dependency>

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.entity;
import com.orion.lang.define.wrapper.IPageRequest;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.valid.group;
package com.orion.ops.framework.common.validator.group;
/**
* 分页验证分组

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.valid.group;
package com.orion.ops.framework.common.validator.group;
/**
* 分页验证分组

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-framework</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
<name>${project.artifactId}</name>
<packaging>jar</packaging>
<description>项目操作日志包</description>
<url>https://github.com/lijiahangmax/orion-ops-pro</url>
<dependencies>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-framework-common</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,9 @@
package com.orion.ops.framework.biz.operator.log.core.annotation;
/**
* @author Jiahang Li
* @version 1.0.0
* @since 2023/10/9 18:44
*/
public interface OperatorLog {
}

View File

@@ -0,0 +1,27 @@
package com.orion.ops.framework.biz.operator.log.core.model;
import lombok.Data;
/**
* 操作日志模型
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/10/9 18:44
*/
@Data
public class OperatorLogModel {
// 用户操作日志
// id
// user_id
// trace_id
// log_info
// module 模块
// operator 操作
// ip
// address
// user_agent
// params
// result
// duration
}

View File

@@ -31,7 +31,7 @@
<module>orion-ops-spring-boot-starter-security</module>
<module>orion-ops-spring-boot-starter-monitor</module>
<module>orion-ops-spring-boot-starter-test</module>
<!-- <module>orion-ops-spring-boot-starter-operator-log</module>-->
<module>orion-ops-spring-boot-starter-biz-operator-log</module>
</modules>
</project>

View File

@@ -81,6 +81,10 @@
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-monitor</artifactId>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
</dependency>
<!-- orion-ops modules -->
<dependency>

View File

@@ -1,7 +1,7 @@
package ${package.Controller};
import com.orion.lang.define.wrapper.DataGrid;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.ops.framework.log.core.annotation.IgnoreLog;
import com.orion.ops.framework.log.core.enums.IgnoreLogMode;
import com.orion.ops.framework.web.core.annotation.RestWrapper;

View File

@@ -48,10 +48,10 @@
</dependency>
<!-- operator-log -->
<!-- <dependency>-->
<!-- <groupId>com.orion.ops</groupId>-->
<!-- <artifactId>orion-ops-spring-boot-starter-operator-log</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
</dependency>
<!-- desensitize -->
<dependency>

View File

@@ -1,7 +1,7 @@
package com.orion.ops.module.asset.controller;
import com.orion.lang.define.wrapper.DataGrid;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.ops.framework.log.core.annotation.IgnoreLog;
import com.orion.ops.framework.log.core.enums.IgnoreLogMode;
import com.orion.ops.framework.web.core.annotation.RestWrapper;

View File

@@ -1,7 +1,7 @@
package com.orion.ops.module.asset.controller;
import com.orion.lang.define.wrapper.DataGrid;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.ops.framework.log.core.annotation.IgnoreLog;
import com.orion.ops.framework.log.core.enums.IgnoreLogMode;
import com.orion.ops.framework.web.core.annotation.RestWrapper;

View File

@@ -1,7 +1,7 @@
package com.orion.ops.module.asset.controller;
import com.orion.lang.define.wrapper.DataGrid;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.ops.framework.log.core.annotation.IgnoreLog;
import com.orion.ops.framework.log.core.enums.IgnoreLogMode;
import com.orion.ops.framework.web.core.annotation.RestWrapper;

View File

@@ -41,10 +41,10 @@
</dependency>
<!-- operator-log -->
<!-- <dependency>-->
<!-- <groupId>com.orion.ops</groupId>-->
<!-- <artifactId>orion-ops-spring-boot-starter-operator-log</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
</dependency>
<!-- desensitize -->
<dependency>

View File

@@ -1,7 +1,7 @@
package com.orion.ops.module.infra.controller;
import com.orion.lang.define.wrapper.DataGrid;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.ops.framework.log.core.annotation.IgnoreLog;
import com.orion.ops.framework.log.core.enums.IgnoreLogMode;
import com.orion.ops.framework.web.core.annotation.RestWrapper;

View File

@@ -3,7 +3,7 @@ package com.orion.ops.module.infra.controller;
import com.orion.lang.define.wrapper.DataGrid;
import com.orion.lang.define.wrapper.HttpWrapper;
import com.orion.lang.utils.collect.Lists;
import com.orion.ops.framework.common.valid.group.Page;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.ops.framework.log.core.annotation.IgnoreLog;
import com.orion.ops.framework.log.core.enums.IgnoreLogMode;
import com.orion.ops.framework.web.core.annotation.RestWrapper;