declare namespace API {
  type DeptTreeItem = {
    children?: DeptTreeItem[]
    id: string
    parentId: string
    weight: number
    name: string
    isLock: boolean
    createdTime: string
  }

  type DeptTreeResult = DeptTreeItem[]

  /** 部门参数 */
  type DeptParams = {
    parentId: number | string
    deptId: number
    deptName: string
    sortOrder: number
  }

  /** 新增部门入参 */
  type AddDeptParams = Pick<DeptParams, 'deptName' | 'parentId' | 'sortOrder'>
}
