@Component public class UserUtil extends Object
| Constructor and Description |
|---|
UserUtil(UserMapper userMapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccount()
获取当前登录用户Account
|
String |
getToken()
获取当前登录用户Token
|
UserDto |
getUser()
获取当前登录用户
|
Integer |
getUserId()
获取当前登录用户Id
|
@Autowired public UserUtil(UserMapper userMapper)
public UserDto getUser()
public Integer getUserId()
public String getToken()
public String getAccount()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.