package com.bcxin.tenant.domain.dto;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author linqinglin
 * @date 2021/12/21 0021 16:56
 */
@Getter
@Setter(AccessLevel.PROTECTED)
public class SingleLoginUserDto {

    String userName;

    String employeeId;

    List<String> roleList;

    public SingleLoginUserDto(String employeeId,String userName,List<String> roleList){
        this.employeeId = employeeId;
        this.userName = userName;
        this.roleList = roleList;

    }

    public static SingleLoginUserDto create(String employeeId,String userName, List<String> roleList) {
        return new SingleLoginUserDto(employeeId,userName,roleList);
    }

}
