cm-cloud/cloud-common/src/main/java/com/cm/common/annotation/CheckNumberAnnotation.java

31 lines
678 B
Java
Raw Normal View History

package com.cm.common.annotation;
import com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy;
import java.lang.annotation.*;
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: CheckNumberAnnotation
* @Description: 字段为数字校验
* @Author: WangGeng
* @Date: 2019/11/14 11:31
* @Version: 1.0
**/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface CheckNumberAnnotation {
String name();
String[] types() default {};
double max() default Double.MAX_VALUE;
double min() default Double.MIN_VALUE;
}