package com.sckw.core.web.model;

import lombok.Data;

import java.util.List;

/**
 * 登录中的用户信息
 * @Author zhaokang
 * @date 2020/04/13 0021
 */
@Data
public class LoginUserInfo {
    /**
     * 用户id
     */
    private Long id;
    /**
     * 用户所属系统
     */
    private Integer systemType;
    /**
     * 用户账号
     */
    private String account;
    /**
     * 用户姓名
     */
    private String userName;
    /**
     * 用户电话
     */
    private String phone;
    /**
     * 是否主账号（0是/1否）
     */
    private int isMain;
    /**
     *用户账号状态(0正常/1锁定)
     */
    private Integer status;
    /**
     * 用户所属企业id
     */
    private Long entId;
    /**
     * 用户登录终端
     */
    private String clientType;
    /**
     * 用户所属机构id
     */
    private String deptIds;

    /**
     * 企业名
     */
    private String entName;

    private List<Long> authUserIdList;

    public LoginUserInfo() {
    }

    public LoginUserInfo(Long id, Integer systemType, String account, String userName, String phone,
                         int isMain, int status, Long entId, String clientType, String deptIds, List<Long> authUserIdList) {
        this.id = id;
        this.systemType = systemType;
        this.account = account;
        this.userName = userName;
        this.phone = phone;
        this.isMain = isMain;
        this.status = status;
        this.entId = entId;
        this.clientType = clientType;
        this.deptIds = deptIds;
        this.authUserIdList = authUserIdList;
    }
}
