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

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

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

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