forked from ddrilling/asb_cloud_front
api client update
This commit is contained in:
parent
bf7663987a
commit
d23287918f
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user