|
|
|
@ -1,12 +1,14 @@ |
|
|
|
import type { GetTenantsInput, TenantCreateDto, TenantDto, TenantUpdateDto } from './models'; |
|
|
|
import { RestService } from '@abp/ng.core'; |
|
|
|
import type { PagedResultDto } from '@abp/ng.core'; |
|
|
|
import { Injectable } from '@angular/core'; |
|
|
|
import { Injectable, inject } from '@angular/core'; |
|
|
|
|
|
|
|
@Injectable({ |
|
|
|
providedIn: 'root', |
|
|
|
}) |
|
|
|
export class TenantService { |
|
|
|
private restService = inject(RestService); |
|
|
|
|
|
|
|
apiName = 'AbpTenantManagement'; |
|
|
|
|
|
|
|
create = (input: TenantCreateDto) => |
|
|
|
@ -69,6 +71,4 @@ export class TenantService { |
|
|
|
params: { defaultConnectionString }, |
|
|
|
}, |
|
|
|
{ apiName: this.apiName }); |
|
|
|
|
|
|
|
constructor(private restService: RestService) {} |
|
|
|
} |
|
|
|
|