init
This commit is contained in:
24
src/main/java/com/newyetai/usercenter/dto/Resource.java
Normal file
24
src/main/java/com/newyetai/usercenter/dto/Resource.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.newyetai.usercenter.dto;
|
||||
|
||||
import org.springframework.security.access.ConfigAttribute;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支持授权的资源接口
|
||||
*
|
||||
* @author on 2019-11-05
|
||||
*/
|
||||
public interface Resource extends Serializable {
|
||||
|
||||
Long getId();
|
||||
|
||||
/**
|
||||
* 提供资源对于的权限信息
|
||||
*
|
||||
* @return 权限信息
|
||||
*/
|
||||
List<ConfigAttribute> getAttributes();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user