---移动数据日志api目录
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
public enum JoinCaseType {
|
||||
|
||||
FULL,NONE
|
||||
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月28日 下午6:00:10
|
||||
* @Description: 关联类型 ONE_ONE ONE_MANY
|
||||
*/
|
||||
public enum JoinType {
|
||||
|
||||
ONE,
|
||||
MANY
|
||||
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月26日 上午9:18:35
|
||||
* @Description: 关联值类型
|
||||
*/
|
||||
public enum JoinValueType {
|
||||
|
||||
FEILD, //字段关联
|
||||
STATIC //字段等于静态值
|
||||
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月26日 下午5:33:01
|
||||
* @Description: 数据日志属性配置
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface LogField {
|
||||
|
||||
@AliasFor("name")
|
||||
String value() default "";
|
||||
|
||||
/**
|
||||
* @Description: 业务名称
|
||||
* @return String 返回类型
|
||||
*/
|
||||
@AliasFor("value")
|
||||
String name() default "";
|
||||
|
||||
/**
|
||||
* @Description: 数据库字段
|
||||
* @return String 返回类型
|
||||
*/
|
||||
String column() default "";
|
||||
|
||||
/**
|
||||
* @Description: 位置
|
||||
* @return int 返回类型
|
||||
*/
|
||||
int index() default 0;
|
||||
|
||||
}
|
||||
@ -1,63 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月26日 上午9:37:23
|
||||
* @Description: 关联关系
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
public @interface LogJoin {
|
||||
|
||||
/**
|
||||
* @Description: 业务名称
|
||||
* @return String 返回类型
|
||||
*/
|
||||
String name();
|
||||
|
||||
/**
|
||||
* @Description: 关联对象
|
||||
* @return Class<?> 返回类型
|
||||
*/
|
||||
Class<?> target();
|
||||
|
||||
/**
|
||||
* @Description: 关联类型
|
||||
* @return JoinType 返回类型
|
||||
*/
|
||||
JoinType type();
|
||||
|
||||
/**
|
||||
* @Description: 级联类型:DEL(删除)、UPD(修改)、FULL(全部);
|
||||
* @return JoinType 返回类型
|
||||
*/
|
||||
JoinCaseType caseType() default JoinCaseType.FULL;
|
||||
|
||||
/**
|
||||
* @Description: 关联列
|
||||
* @return DataLogJoinColumn[] 返回类型
|
||||
*/
|
||||
LogJoinColumn[] columns() default {};
|
||||
|
||||
/**
|
||||
* @Description: 数据来源:默认通过target配置的表名去关联查询;如果sourceType = TQ 时配置查询ID
|
||||
* @return String 返回类型
|
||||
*/
|
||||
String source() default "";
|
||||
|
||||
/**
|
||||
* @Description: TODO(这里用一句话描述这个方法的作用)
|
||||
* @return
|
||||
* @return QJoinSource 返回类型
|
||||
*/
|
||||
SourceType sourceType() default SourceType.TABLE;
|
||||
|
||||
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月26日 上午9:37:45
|
||||
* @Description: 关联属性配置
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
public @interface LogJoinColumn {
|
||||
|
||||
/**
|
||||
* @Description: 属性
|
||||
* @return String 返回类型
|
||||
*/
|
||||
String field() default "";
|
||||
|
||||
/**
|
||||
* @Description: 关联属性
|
||||
* @return String 返回类型
|
||||
*/
|
||||
String relatedField() default "";
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 赋值方向
|
||||
* @return ValueDirectionType 返回类型
|
||||
*/
|
||||
ValueDirectionType valueDirection() default ValueDirectionType.LEFT;
|
||||
|
||||
/**
|
||||
* @Description: 关联值类型:JoinValueType: FEILD【字段关联】、STATIC【字段等于静态值】
|
||||
* @return String 返回类型
|
||||
*/
|
||||
JoinValueType valueType() default JoinValueType.FEILD;
|
||||
|
||||
String staticValue() default "";
|
||||
|
||||
Class<?> staticType() default String.class;
|
||||
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月25日 下午6:09:03
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
*/
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
public @interface LogTable {
|
||||
|
||||
/**
|
||||
* @Description: 业务名称
|
||||
* @return String 返回类型
|
||||
*/
|
||||
@AliasFor("name")
|
||||
String value() default "";
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 业务名称
|
||||
* @return String 返回类型
|
||||
*/
|
||||
@AliasFor("value")
|
||||
String name() default "";
|
||||
|
||||
/**
|
||||
* @Description: 表名或者查询ID
|
||||
* @return String 返回类型
|
||||
*/
|
||||
String source();
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @return QJoinSource 返回类型
|
||||
*/
|
||||
SourceType sourceType() default SourceType.TABLE;
|
||||
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月28日 下午4:24:27
|
||||
* @Description: 数据来源,默认从关联表,获取从SQL配置表
|
||||
*/
|
||||
public enum SourceType {
|
||||
|
||||
TABLE,
|
||||
TSQL
|
||||
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
package com.pictc.annotations.datalog;
|
||||
|
||||
/**
|
||||
* @author 张福财
|
||||
* @date 2025年8月28日 下午2:40:03
|
||||
* @Description: 赋值方向
|
||||
* 左边为主表
|
||||
* 右边为子表
|
||||
*/
|
||||
public enum ValueDirectionType {
|
||||
LEFT, //向左
|
||||
RIGHT
|
||||
}
|
||||
Reference in New Issue
Block a user