import request from '@/utils/request'

export interface Tenant {
  id: string
  name: string
  displayName: string
  year: string
  createdAt: string
}

export interface TenantListResponse {
  tenants: Tenant[]
  total: number
}

export function getTenantList(): Promise<TenantListResponse> {
  return request<TenantListResponse>({
    url: '/admin/tenants',
    method: 'get'
  })
}
