export {}

declare global {
  namespace G {
    interface TreeNode {
      id: string
      pid: string
      children?: TreeNode[]

      [key: string]: any
    }

    interface PageResult<T = object> {
      current: number
      size: number
      total: number
      records: T[]
    }

    interface PageParam {
      current: number
      size: number
      orders?: string
    }

    interface Pagination {
      total: number
      current: number
      size: number
      orders?: string

    }
  }
}

