From d23287918f08424576c1fc0c7b68c68bc44bd325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Tue, 20 Jul 2021 09:15:11 +0500 Subject: [PATCH] api client update --- src/services/api/services/ClusterService.ts | 18 ++++++++++++++++-- src/services/api/services/DepositService.ts | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/services/api/services/ClusterService.ts b/src/services/api/services/ClusterService.ts index b31f270..e839088 100644 --- a/src/services/api/services/ClusterService.ts +++ b/src/services/api/services/ClusterService.ts @@ -2,11 +2,25 @@ /* tslint:disable */ /* eslint-disable */ import type { ClusterAnalysisDto } from '../models/ClusterAnalysisDto'; +import type { ClusterDto } from '../models/ClusterDto'; import type { WellDto } from '../models/WellDto'; import { request as __request } from '../core/request'; export class ClusterService { + /** + * Получает список доступных пользователю кустов + * @returns ClusterDto Success + * @throws ApiError + */ + public static async getClusters(): Promise> { + const result = await __request({ + method: 'GET', + path: `/api/cluster`, + }); + return result.body; + } + /** * Получение доступных пользователю скважин * @param clusterId @@ -18,7 +32,7 @@ clusterId: number, ): Promise> { const result = await __request({ method: 'GET', - path: `/api/Cluster/${clusterId}`, + path: `/api/cluster/${clusterId}`, }); return result.body; } @@ -34,7 +48,7 @@ clusterId: number, ): Promise> { const result = await __request({ method: 'GET', - path: `/api/Cluster/${clusterId}/Analysis`, + path: `/api/cluster/${clusterId}/Analysis`, }); return result.body; } diff --git a/src/services/api/services/DepositService.ts b/src/services/api/services/DepositService.ts index ff64c74..ca61820 100644 --- a/src/services/api/services/DepositService.ts +++ b/src/services/api/services/DepositService.ts @@ -15,7 +15,7 @@ export class DepositService { public static async getDeposits(): Promise> { const result = await __request({ method: 'GET', - path: `/api/Deposit`, + path: `/api/deposit`, }); return result.body; } @@ -31,7 +31,7 @@ depositId: number, ): Promise> { const result = await __request({ method: 'GET', - path: `/api/Deposit/${depositId}`, + path: `/api/deposit/${depositId}`, }); return result.body; }