forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
609 B
31 lines
609 B
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.service;
|
|
|
|
import com.epmet.commons.tools.security.user.UserDetail;
|
|
|
|
/**
|
|
* 资源服务
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
public interface ResourceService {
|
|
|
|
/**
|
|
* 是否有资源访问权限
|
|
* @param token token
|
|
* @param url 资源URL
|
|
* @param method 请求方式
|
|
*
|
|
* @return 有访问权限,则返回用户信息
|
|
*/
|
|
UserDetail resource(String token, String url, String method);
|
|
|
|
}
|
|
|