Files
nuttyreading-java/src/main/java/com/peanut/modules/sys/service/ShiroService.java
wangjinlei 3cef570c97 1
2024-03-15 10:19:03 +08:00

42 lines
854 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 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);
}