| | |
| | | package com.genersoft.iot.vmp.conf.security.dto; |
| | | |
| | | import com.genersoft.iot.vmp.storager.dao.dto.Role; |
| | | import com.genersoft.iot.vmp.storager.dao.dto.User; |
| | | import org.springframework.security.core.CredentialsContainer; |
| | | import org.springframework.security.core.GrantedAuthority; |
| | |
| | | * 用户 |
| | | */ |
| | | private User user; |
| | | |
| | | private String accessToken; |
| | | |
| | | |
| | | /** |
| | |
| | | public int getId() { |
| | | return user.getId(); |
| | | } |
| | | |
| | | public Role getRole() { |
| | | return user.getRole(); |
| | | } |
| | | |
| | | |
| | | public String getAccessToken() { |
| | | return accessToken; |
| | | } |
| | | |
| | | public void setAccessToken(String accessToken) { |
| | | this.accessToken = accessToken; |
| | | } |
| | | } |