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 getAttributes(); }