com.nepxion.permission.annotation.Permission Maven / Gradle / Ivy
package com.nepxion.permission.annotation;
/**
* Title: Nepxion Permission
* Description: Nepxion Permission
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import java.lang.annotation.Documented;
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;
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Permission {
/**
* 权限名字,全局唯一,英文格式
* @return String
*/
String name();
/**
* 权限标签
* @return String
*/
String label();
/**
* 权限描述
* @return String
*/
String description() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy