api client update

This commit is contained in:
Фролов 2021-07-20 09:15:11 +05:00
parent bf7663987a
commit d23287918f
2 changed files with 18 additions and 4 deletions

View File

@ -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<Array<ClusterDto>> {
const result = await __request({
method: 'GET',
path: `/api/cluster`,
});
return result.body;
}
/**
* Получение доступных пользователю скважин
* @param clusterId
@ -18,7 +32,7 @@ clusterId: number,
): Promise<Array<WellDto>> {
const result = await __request({
method: 'GET',
path: `/api/Cluster/${clusterId}`,
path: `/api/cluster/${clusterId}`,
});
return result.body;
}
@ -34,7 +48,7 @@ clusterId: number,
): Promise<Array<ClusterAnalysisDto>> {
const result = await __request({
method: 'GET',
path: `/api/Cluster/${clusterId}/Analysis`,
path: `/api/cluster/${clusterId}/Analysis`,
});
return result.body;
}

View File

@ -15,7 +15,7 @@ export class DepositService {
public static async getDeposits(): Promise<Array<DepositDto>> {
const result = await __request({
method: 'GET',
path: `/api/Deposit`,
path: `/api/deposit`,
});
return result.body;
}
@ -31,7 +31,7 @@ depositId: number,
): Promise<Array<ClusterDto>> {
const result = await __request({
method: 'GET',
path: `/api/Deposit/${depositId}`,
path: `/api/deposit/${depositId}`,
});
return result.body;
}