whycrzg
2021-05-21 e4cd7fd3e48a5280d15cfbf07ca5e1e18b4f74d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;
//    }
}