/**
 * 组织查询参数
 */
export interface OrgQuery extends PageQuery {
  name?: string
  parentId?: string
  status?: string
}

/**
 * 组织类型
 */
export interface OrgVO extends BaseEntity {
  orgId: string
  parentName: string
  parentId: string
  name: string
  orderNum: number
  leader: string
  phone?: string
  remark?: string
  email?: string
  status: string
  delFlag: string
  ancestors: string
}

/**
 * 组织树类型
 */
export interface OrgTreeVO {
  id?: number | string
  orgId: string
  parentName?: string
  parentId: string
  children: OrgTreeVO[]
  name: string
  orderNum?: number
  leader?: string
  phone?: string
  email?: string
  ancestors?: string
  menuId?: string | number
}

/**
 * 组织表单类型
 */
export interface OrgBO {
  orgId: string
  parentName: string
  parentId: string
  name: string
  orderNum: number
  leader: string
  leaderId: string
  phone?: string
  remark?: string
  email?: string
  status: string
  delFlag: string
  ancestors: string
}
