| | |
| | | package com.whyc.dto; |
| | | |
| | | import com.whyc.pojo.Menu; |
| | | import com.whyc.pojo.User; |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用户登录后保存的信息 |
| | | */ |
| | | @Data |
| | | @NoArgsConstructor |
| | | public class UserLoginInfo { |
| | | private String username; |
| | | private Long timestamp; |
| | | private User user; |
| | | private List<Menu> menus; |
| | | |
| | | public UserLoginInfo(String username, Long timestamp) { |
| | | this.username = username; |
| | | this.timestamp = timestamp; |
| | | } |
| | | |
| | | public String getUsername() { |
| | | return username; |
| | | } |
| | | |
| | | public void setUsername(String username) { |
| | | this.username = username; |
| | | } |
| | | |
| | | public Long getTimestamp() { |
| | | return timestamp; |
| | | } |
| | | |
| | | public void setTimestamp(Long timestamp) { |
| | | this.timestamp = timestamp; |
| | | } |
| | | // public String getUsername() { |
| | | // return username; |
| | | // } |
| | | // |
| | | // public void setUsername(String username) { |
| | | // this.username = username; |
| | | // } |
| | | // |
| | | // public Long getTimestamp() { |
| | | // return timestamp; |
| | | // } |
| | | // |
| | | // public void setTimestamp(Long timestamp) { |
| | | // this.timestamp = timestamp; |
| | | // } |
| | | } |