export interface PeopleModel {
  id: string;
  name: string;
  avatar?: string;
  gender?: '0' | '1';
  age?: number;
  dept?:{
    deptId: string;
    deptName: string;
  };
}

export interface PatientTagModel {
  id: string;
  tags: { id: string, name: string }[];
}

export function transformAccount(data: any): PeopleModel {
  return {
    id: data?.userId,
    name: data?.nickName,
    avatar: data?.avatar,
    dept: {
      deptId: data?.dept?.deptId,
      deptName: data?.dept?.deptName,
    },
  };
}
