parent
09718780a7
commit
6b7f7c443f
@ -0,0 +1,37 @@
|
||||
<?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>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>hwmom-common-mom</artifactId>
|
||||
|
||||
<description>
|
||||
hwmom-common-mom 通用功能
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-satoken</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-json</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-spring-boot-starter</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,43 @@
|
||||
package org.dromara.common.annotation;
|
||||
|
||||
import org.dromara.common.enums.OperatorType;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 自定义数据同步记录注解
|
||||
*
|
||||
* @author xins
|
||||
*/
|
||||
@Target({ElementType.PARAMETER, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface DataSyncPublish {
|
||||
/**
|
||||
* 数据库表名称
|
||||
*/
|
||||
String tableName() default "";
|
||||
|
||||
|
||||
/**
|
||||
* 操作类型
|
||||
*/
|
||||
OperatorType operatorType() default OperatorType.INSERT;
|
||||
|
||||
// /**
|
||||
// * 是否保存请求的参数
|
||||
// */
|
||||
// boolean isSaveRequestData() default true;
|
||||
//
|
||||
// /**
|
||||
// * 是否保存响应的参数
|
||||
// */
|
||||
// boolean isSaveResponseData() default true;
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * 排除指定的请求参数
|
||||
// */
|
||||
// String[] excludeParamNames() default {};
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package org.dromara.common.enums;
|
||||
|
||||
/**
|
||||
* 操作类型
|
||||
*
|
||||
* @author xins
|
||||
*/
|
||||
public enum OperatorType {
|
||||
/**
|
||||
* 插入
|
||||
*/
|
||||
INSERT,
|
||||
|
||||
/**
|
||||
* 更新
|
||||
*/
|
||||
UPDATE,
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
DELETE
|
||||
}
|
Loading…
Reference in New Issue