2026-02-25 15:08:36 +00:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-25 18:19:51 +00:00
|
|
|
export function getTenantList(): Promise<TenantListResponse> {
|
2026-02-25 15:08:36 +00:00
|
|
|
return request<TenantListResponse>({
|
|
|
|
|
url: '/admin/tenants',
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|