42 lines
854 B
Java
42 lines
854 B
Java
/**
|
||
* Copyright (c) 2016-2019 人人开源 All rights reserved.
|
||
*
|
||
* https://www.renren.io
|
||
*
|
||
* 版权所有,侵权必究!
|
||
*/
|
||
|
||
package com.peanut.modules.sys.service;
|
||
|
||
import com.peanut.modules.common.entity.MyUserEntity;
|
||
import com.peanut.modules.sys.entity.SysUserTokenEntity;
|
||
import com.peanut.modules.sys.entity.SysUserEntity;
|
||
|
||
import java.util.Set;
|
||
|
||
/**
|
||
* shiro相关接口
|
||
*
|
||
* @author Mark sunlightcs@gmail.com
|
||
*/
|
||
public interface ShiroService {
|
||
/**
|
||
* 获取用户权限列表
|
||
*/
|
||
Set<String> getUserPermissions(long userId);
|
||
|
||
SysUserTokenEntity queryByToken(String token);
|
||
|
||
/**
|
||
* 根据用户ID,查询用户
|
||
* @param userId
|
||
*/
|
||
SysUserEntity queryUser(Long userId);
|
||
|
||
/**
|
||
* 根据app用户ID,查询用户
|
||
* @param userId
|
||
*/
|
||
MyUserEntity queryAppUser(Long userId);
|
||
}
|