whycxzp
2021-07-26 8c189b243bfbbacb2ab1ce79f4e1ff22708f125a
src/main/java/com/whyc/dto/UserLoginInfo.java
@@ -1,30 +1,42 @@
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;
//    }
}