@Service @ConditionalOnSingleCandidate(value=FrameworkUserService.class) public class DefaultFrameworkUserServiceImpl extends Object implements FrameworkUserService
| Constructor and Description |
|---|
DefaultFrameworkUserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
LoginUserVo |
getUserInfo(String token,
String uid)
获取用户信息到缓存里面
|
LoginUserVo |
refreshUserInfo()
强刷用户信息缓存
|
LoginUserVo |
setUserInfo(String token,
String uid,
LoginUserVo user)
设置用户信息到缓存里面
|
LoginUserVo |
userInfo()
缓存里面获取到用户信息
|
public LoginUserVo refreshUserInfo()
FrameworkUserServicerefreshUserInfo in interface FrameworkUserServicepublic LoginUserVo userInfo()
FrameworkUserServiceuserInfo in interface FrameworkUserServicepublic LoginUserVo setUserInfo(String token, String uid, LoginUserVo user)
FrameworkUserServicesetUserInfo in interface FrameworkUserServicetoken - tokenuid - 用户iduser - 用户信息public LoginUserVo getUserInfo(String token, String uid)
FrameworkUserServicegetUserInfo in interface FrameworkUserServicetoken - tokenuid - 用户idCopyright © 2024. All rights reserved.