22 lines
355 B
TypeScript
22 lines
355 B
TypeScript
|
|
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() {
|
||
|
|
return request<TenantListResponse>({
|
||
|
|
url: '/admin/tenants',
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
}
|