diff --git a/npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts b/npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts index d248cec4d1..a1c4d4bb9b 100644 --- a/npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts +++ b/npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts @@ -1,5 +1,5 @@ -import { RestService } from '@abp/ng.core'; import { Injectable } from '@angular/core'; +import { RestService } from '../../../../services/rest.service'; import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/multi-tenancy/models'; @Injectable({ @@ -9,18 +9,23 @@ export class AbpTenantService { apiName = 'abp'; findTenantById = (id: string) => - this.restService.request({ - method: 'GET', - url: `/api/abp/multi-tenancy/tenants/by-id/${id}`, - }, - { apiName: this.apiName }); + this.restService.request( + { + method: 'GET', + url: `/api/abp/multi-tenancy/tenants/by-id/${id}`, + }, + { apiName: this.apiName }, + ); - findTenantByName = (name: string) => - this.restService.request({ - method: 'GET', - url: `/api/abp/multi-tenancy/tenants/by-name/${name}`, - }, - { apiName: this.apiName }); + findTenantByName = (name: string, headers: Record) => + this.restService.request( + { + method: 'GET', + url: `/api/abp/multi-tenancy/tenants/by-name/${name}`, + headers, + }, + { apiName: this.apiName }, + ); constructor(private restService: RestService) {} } diff --git a/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts b/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts index 7a9cdf0457..f11414cba3 100644 --- a/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts +++ b/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts @@ -1,6 +1,9 @@ -import { RestService } from '@abp/ng.core'; import { Injectable } from '@angular/core'; -import type { ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto } from '../../../http/modeling/models'; +import { RestService } from '../../../../../../services/rest.service'; +import type { + ApplicationApiDescriptionModel, + ApplicationApiDescriptionModelRequestDto, +} from '../../../http/modeling/models'; @Injectable({ providedIn: 'root', @@ -9,12 +12,14 @@ export class AbpApiDefinitionService { apiName = 'abp'; getByModel = (model: ApplicationApiDescriptionModelRequestDto) => - this.restService.request({ - method: 'GET', - url: '/api/abp/api-definition', - params: { includeTypes: model.includeTypes }, - }, - { apiName: this.apiName }); + this.restService.request( + { + method: 'GET', + url: '/api/abp/api-definition', + params: { includeTypes: model.includeTypes }, + }, + { apiName: this.apiName }, + ); constructor(private restService: RestService) {} } diff --git a/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.ts b/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.ts index 58fe8cc7a5..f9ac9fbb79 100644 --- a/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.ts +++ b/npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.ts @@ -1,6 +1,6 @@ -import type { ApplicationConfigurationDto } from './models'; -import { RestService } from '@abp/ng.core'; import { Injectable } from '@angular/core'; +import { RestService } from '../../../../../../services/rest.service'; +import type { ApplicationConfigurationDto } from './models'; @Injectable({ providedIn: 'root', @@ -8,12 +8,15 @@ import { Injectable } from '@angular/core'; export class AbpApplicationConfigurationService { apiName = 'abp'; - get = () => - this.restService.request({ - method: 'GET', - url: '/api/abp/application-configuration', - }, - { apiName: this.apiName }); + get() { + return this.restService.request( + { + method: 'GET', + url: '/api/abp/application-configuration', + }, + { apiName: this.apiName }, + ); + } constructor(private restService: RestService) {} }