All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hecloud.runtime.common.annotation.Permission Maven / Gradle / Ivy

package com.hecloud.runtime.common.annotation;

import com.hecloud.runtime.common.enums.Scope;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 权限自定义注解
 *
 * @author LoveinBJ
 */
@Documented
@Retention(RUNTIME)
@Target(METHOD)
public @interface Permission {
    /**
     * 功能ID,该功能ID,对应数据库中的功能ID 
* 权限的命名规则为:服务名.资源名.操作
* * @return 权限编码 * @version V2.0.0 */ String value(); Scope scope(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy