feat:() 增加系统字典核心
parent
1a2bcb613d
commit
914446febd
|
@ -0,0 +1,24 @@
|
||||||
|
package com.muyu.common.core.validation.custom;
|
||||||
|
|
||||||
|
import jakarta.validation.Constraint;
|
||||||
|
|
||||||
|
import java.lang.annotation.Documented;
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName IsSystemYesNo
|
||||||
|
* @Description validation自定义系统字典校验
|
||||||
|
* @Author Chen
|
||||||
|
* @Date 2024/8/6 20:58
|
||||||
|
*/
|
||||||
|
@Target({ElementType.FIELD})
|
||||||
|
@Retention(RUNTIME)
|
||||||
|
@Documented
|
||||||
|
@Constraint(validatedBy = {SystemYesNoValidator.class})
|
||||||
|
public @interface IsSystemYesNo {
|
||||||
|
String message() default "数据字典:[系统是否] - 参数不合法";
|
||||||
|
}
|
Loading…
Reference in New Issue