org.ssssssss.magicapi.config.Valid Maven / Gradle / Ivy
package org.ssssssss.magicapi.config;
import org.ssssssss.magicapi.interceptor.Authorization;
import java.lang.annotation.*;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Valid {
/**
* 验证是否有该权限
*/
Authorization authorization() default Authorization.NONE;
/**
* 验证是否是只读模式
*/
boolean readonly() default true;
/**
* 验证是否需要登录
*/
boolean requireLogin() default true;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy