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 enableUrls; private String enableButtons; private List menus; private String realName; private String telphone; private String photoUrl; private Integer userType; public LoginVO(String token, SysUserInfo sysUserInfo,List 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(); } }