import { SysTenantInfo } from "./SysTenantInfo";
import { SysRoleInfo } from "./SysRoleInfo";

export class SysUserInfo {
  userId: string;
  tenantId: string;
  userCode: string;
  userName: string;
  comId: string;
  deptId: string;
  postId: string;
  idnum: string;
  sex: string;
  birthday: string;
  headImg: string;
  phone: string;
  email: string;
  userSource: string;
  isBusTrip: string;
  useState: string;
  sysRoleInfos: SysRoleInfo[];
  sysTenantInfo: SysTenantInfo | undefined;
  constructor(
    options: {
      userId?: string;
      tenantId?: string;
      userCode?: string;
      userName?: string;
      comId?: string;
      deptId?: string;
      postId?: string;
      idnum?: string;
      sex?: string;
      birthday?: string;
      headImg?: string;
      phone?: string;
      email?: string;
      userSource?: string;
      isBusTrip?: string;
      useState?: string;
      sysRoleInfos?: SysRoleInfo[];
      sysTenantInfo?: SysTenantInfo;
    } = {}
  ) {
    this.userId = options.userId || "";
    this.tenantId = options.tenantId || "";
    this.userCode = options.userCode || "";
    this.userName = options.userName || "";
    this.comId = options.comId || "";
    this.deptId = options.deptId || "";
    this.postId = options.postId || "";
    this.idnum = options.idnum || "";
    this.sex = options.sex || "";
    this.birthday = options.birthday || "";
    this.headImg = options.headImg || "";
    this.phone = options.phone || "";
    this.email = options.email || "";
    this.userSource = options.userSource || "";
    this.isBusTrip = options.isBusTrip || "";
    this.useState = options.useState || "";
    this.sysRoleInfos = options.sysRoleInfos || [];
    this.sysTenantInfo = options.sysTenantInfo;
  }
}
