Browse Source

增加审计功能

zhou-hao 6 years ago
parent
commit
eb3a60273e

+ 49 - 0
hsweb-system/hsweb-system-audit/pom.xml

@@ -0,0 +1,49 @@
+<?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>
+        <artifactId>hsweb-system</artifactId>
+        <groupId>org.hswebframework.web</groupId>
+        <version>3.0.7-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>hsweb-system-audit</artifactId>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+            <resource>
+                <directory>src/main/resources/org</directory>
+                <filtering>false</filtering>
+            </resource>
+        </resources>
+    </build>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>org.hswebframework.web</groupId>
+            <artifactId>hsweb-commons-service-simple</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.hswebframework.web</groupId>
+            <artifactId>hsweb-commons-controller</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.hswebframework.web</groupId>
+            <artifactId>hsweb-commons-dao-mybatis</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+    </dependencies>
+
+</project>

+ 4 - 0
hsweb-system/hsweb-system-audit/src/main/java/org/hswebframework/web/audit/EntityHistoryService.java

@@ -0,0 +1,4 @@
+package org.hswebframework.web.audit;
+
+public class EntityHistoryService {
+}

+ 36 - 0
hsweb-system/hsweb-system-audit/src/main/java/org/hswebframework/web/audit/entity/HistoryEntity.java

@@ -0,0 +1,36 @@
+package org.hswebframework.web.audit.entity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class HistoryEntity {
+
+    private String batchId;
+
+    private String dataId;
+
+    private String entity;
+
+    private String entityName;
+
+    private String property;
+
+    private String propertyName;
+
+    private String comment;
+
+    private String action;
+
+    private String before;
+
+    private String after;
+
+    private Long createTime;
+
+    private Long operationUserId;
+
+
+
+}

+ 1 - 0
hsweb-system/pom.xml

@@ -28,6 +28,7 @@
         <module>hsweb-system-oauth2-client</module>
         <module>hsweb-system-dashboard</module>
         <module>hsweb-system-dev-tools</module>
+        <module>hsweb-system-audit</module>
     </modules>
     <artifactId>hsweb-system</artifactId>