forked from ddrilling/asb_cloud_front
Some new open api generated entities
This commit is contained in:
parent
1b33b6683f
commit
3e1312fec2
@ -45,4 +45,5 @@ export { MudDiagramService } from './services/MudDiagramService';
|
|||||||
export { NnbDataService } from './services/NnbDataService';
|
export { NnbDataService } from './services/NnbDataService';
|
||||||
export { ReportService } from './services/ReportService';
|
export { ReportService } from './services/ReportService';
|
||||||
export { TelemetryService } from './services/TelemetryService';
|
export { TelemetryService } from './services/TelemetryService';
|
||||||
|
export { WellSectionService } from './services/WellSectionService';
|
||||||
export { WellService } from './services/WellService';
|
export { WellService } from './services/WellService';
|
||||||
|
@ -9,10 +9,10 @@ export type WellStatDto = {
|
|||||||
caption?: string | null;
|
caption?: string | null;
|
||||||
cluster?: string | null;
|
cluster?: string | null;
|
||||||
deposit?: string | null;
|
deposit?: string | null;
|
||||||
id?: number;
|
|
||||||
latitude?: number | null;
|
latitude?: number | null;
|
||||||
longitude?: number | null;
|
longitude?: number | null;
|
||||||
wellType?: string | null;
|
wellType?: string | null;
|
||||||
|
id?: number;
|
||||||
planStart?: string | null;
|
planStart?: string | null;
|
||||||
planEnd?: string | null;
|
planEnd?: string | null;
|
||||||
factStart?: string | null;
|
factStart?: string | null;
|
||||||
|
96
src/services/api/services/WellSectionService.ts
Normal file
96
src/services/api/services/WellSectionService.ts
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
import type { WellSectionDto } from '../models/WellSectionDto';
|
||||||
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
|
export class WellSectionService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param idWell
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getAll(
|
||||||
|
idWell: string,
|
||||||
|
): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/well/${idWell}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param idWell
|
||||||
|
* @param requestBody
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
idWell: string,
|
||||||
|
requestBody?: WellSectionDto,
|
||||||
|
): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/well/${idWell}`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param id
|
||||||
|
* @param idWell
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async get(
|
||||||
|
id: number,
|
||||||
|
idWell: string,
|
||||||
|
): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/well/${idWell}/${id}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param id
|
||||||
|
* @param idWell
|
||||||
|
* @param requestBody
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async put(
|
||||||
|
id: number,
|
||||||
|
idWell: string,
|
||||||
|
requestBody?: WellSectionDto,
|
||||||
|
): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'PUT',
|
||||||
|
path: `/api/well/${idWell}/${id}`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param id
|
||||||
|
* @param idWell
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async delete(
|
||||||
|
id: number,
|
||||||
|
idWell: string,
|
||||||
|
): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'DELETE',
|
||||||
|
path: `/api/well/${idWell}/${id}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user