import type { ClientInfo } from '../../client/types';
import type { IRole } from '../../role/types/index.type';

/** 用户-类型 */
export interface IUser {
	admin: boolean; // 是否超级管理员账号
	checkVersionCode: string;
	clientCode: string;
	clientInfos: ClientInfo[];
	clientVsUserList: any;
	code: string;
	createTime: string;
	createUser: 0 | null;
	currentClientInfo: ClientInfo;
	deletedTime: null | string;
	doctor: boolean;
	hisCode: string; // his编号
	id: number;
	isDeleted: number;
	isRecvAlarm: any;
	isRecvAlarmEmail: number;
	isRecvAlarmWechat: number;
	isShow: number;
	isValid: number;
	isValidForClient: number;
	loginWechatMpId: string;
	loginWechatUnionId: string;
	nurse: boolean;
	relatedClients: string;
	remark: string;
	roles: IRole[];
	selectFieldsInShangjiCanshuPage: string;
	selectFieldsInTodayOrderPage: string;
	selectedFieldsInCleanStatPage: string;
	selectedFieldsInInventory2OutPage: string;
	selectedFieldsInInventory2QueryPage: string;
	selectedFieldsInMedStat2: string;
	updateTime: string | number;
	updateUser: number | null;
	userAdmin: boolean;
	userAvatar: string;
	userCustomSetting: string;
	userDegree: string;
	userEmail: string;
	userFromDepartment: string;
	userGender: number;
	userGoDate: null | string;
	userGoDepartment: string;
	userGraduateTime: null | string;
	userIdentityCode: string;
	userInDate: null | string;
	userIsTongluDoctor: number;
	userMobile: string;
	userName: string;
	userNo: string;
	userPassword: string;
	userPinyin: string;
	userRfid: string;
	userSignPicUrl: string;
	userSortOrder: number;
	userTitle: string;
	userVsRoleList: any;
	userWorkState: string;
	userWorkTimeFrom: any;
}