first version of aida_back
This commit is contained in:
19
src/main/java/com/ai/da/common/annotation/Condition.java
Normal file
19
src/main/java/com/ai/da/common/annotation/Condition.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.ai.da.common.annotation;
|
||||
|
||||
import com.ai.da.common.enums.ConditionType;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* @author: dangweijian
|
||||
* @description: 条件注解
|
||||
* @create: 2020-01-15 17:24
|
||||
**/
|
||||
@Documented
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Condition {
|
||||
ConditionType type() default ConditionType.EQ;
|
||||
|
||||
boolean isNull() default false;
|
||||
}
|
||||
18
src/main/java/com/ai/da/common/annotation/Order.java
Normal file
18
src/main/java/com/ai/da/common/annotation/Order.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.ai.da.common.annotation;
|
||||
|
||||
|
||||
import com.ai.da.common.enums.OrderType;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* @author: dangweijian
|
||||
* @description: 排序注解
|
||||
* @create: 2020-01-16 13:24
|
||||
**/
|
||||
@Documented
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Order {
|
||||
OrderType order() default OrderType.DESC;
|
||||
}
|
||||
Reference in New Issue
Block a user