张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
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
43
44
45
46
47
48
49
50
51
52
package com.thhy.usercore.modules.sys.login.entity;
 
import com.thhy.usercore.modules.sys.sysmenu.entity.MenuTreeVo;
import com.thhy.general.config.SysUserInfo;
import com.thhy.usercore.modules.sys.sysusers.entity.PlatUserVo;
import lombok.Data;
 
import java.util.List;
 
/**
 * @Author: zhang_xiao_bo
 * @Date: 2022/3/23 9:06
 * @description:
 */
@Data
public class LoginVO {
 
    private String token;
 
    private List<String> enableUrls;
 
    private String enableButtons;
 
    private List<MenuTreeVo> menus;
 
    private String realName;
 
    private String telphone;
 
    private String photoUrl;
 
    private Integer userType;
 
    public LoginVO(String token, SysUserInfo sysUserInfo,List<MenuTreeVo> menus) {
        this.token = token;
        this.enableUrls = sysUserInfo.getEnableUrls();
        this.enableButtons = sysUserInfo.getEnableButtons();
        this.menus = menus;
        this.realName = sysUserInfo.getRealName();
        this.telphone = sysUserInfo.getTelphone();
    }
 
    public LoginVO(String token, SysUserInfo sysUserInfo, PlatUserVo platUserVo) {
        this.token = token;
        //this.enableUrls = sysUserInfo.getEnableUrls();
        //this.enableButtons = sysUserInfo.getEnableButtons();
        this.realName = sysUserInfo.getRealName();
        this.telphone = sysUserInfo.getTelphone();
        this.photoUrl = sysUserInfo.getPhotoUrl();
        this.userType = platUserVo.getUserType();
    }
}