forked from ddrilling/asb_cloud_front
Сервисы обновлены
This commit is contained in:
parent
21f1912dd9
commit
1a3569389e
@ -9,6 +9,7 @@ export type { ClusterDto } from './models/ClusterDto';
|
|||||||
export type { CompanyDto } from './models/CompanyDto';
|
export type { CompanyDto } from './models/CompanyDto';
|
||||||
export type { DatesRangeDto } from './models/DatesRangeDto';
|
export type { DatesRangeDto } from './models/DatesRangeDto';
|
||||||
export type { DepositDto } from './models/DepositDto';
|
export type { DepositDto } from './models/DepositDto';
|
||||||
|
export type { DrillFlowChartParamsDto } from './models/DrillFlowChartParamsDto';
|
||||||
export type { DrillParamsDto } from './models/DrillParamsDto';
|
export type { DrillParamsDto } from './models/DrillParamsDto';
|
||||||
export type { EventDto } from './models/EventDto';
|
export type { EventDto } from './models/EventDto';
|
||||||
export type { FileInfoDto } from './models/FileInfoDto';
|
export type { FileInfoDto } from './models/FileInfoDto';
|
||||||
@ -52,6 +53,7 @@ export { AdminWellService } from './services/AdminWellService';
|
|||||||
export { AuthService } from './services/AuthService';
|
export { AuthService } from './services/AuthService';
|
||||||
export { ClusterService } from './services/ClusterService';
|
export { ClusterService } from './services/ClusterService';
|
||||||
export { DepositService } from './services/DepositService';
|
export { DepositService } from './services/DepositService';
|
||||||
|
export { DrillFlowChartService } from './services/DrillFlowChartService';
|
||||||
export { DrillingProgramService } from './services/DrillingProgramService';
|
export { DrillingProgramService } from './services/DrillingProgramService';
|
||||||
export { DrillParamsService } from './services/DrillParamsService';
|
export { DrillParamsService } from './services/DrillParamsService';
|
||||||
export { FileService } from './services/FileService';
|
export { FileService } from './services/FileService';
|
||||||
|
21
src/services/api/models/DrillFlowChartParamsDto.ts
Normal file
21
src/services/api/models/DrillFlowChartParamsDto.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
export type DrillFlowChartParamsDto = {
|
||||||
|
id?: number;
|
||||||
|
idWell?: number;
|
||||||
|
lastUpdate?: string;
|
||||||
|
depthStart?: number;
|
||||||
|
depthEnd?: number;
|
||||||
|
axialLoadMin?: number;
|
||||||
|
axialLoadMax?: number;
|
||||||
|
pressureMin?: number;
|
||||||
|
pressureMax?: number;
|
||||||
|
rotorTorqueMin?: number;
|
||||||
|
rotorTorqueMax?: number;
|
||||||
|
rotorSpeedMin?: number;
|
||||||
|
rotorSpeedMax?: number;
|
||||||
|
flowMin?: number;
|
||||||
|
flowMax?: number;
|
||||||
|
}
|
@ -11,6 +11,7 @@ export type TelemetryInfoDto = {
|
|||||||
customer?: string | null;
|
customer?: string | null;
|
||||||
deposit?: string | null;
|
deposit?: string | null;
|
||||||
hmiVersion?: string | null;
|
hmiVersion?: string | null;
|
||||||
plcVersion?: string | null;
|
saubPlcVersion?: string | null;
|
||||||
|
spinPlcVersion?: string | null;
|
||||||
comment?: string | null;
|
comment?: string | null;
|
||||||
}
|
}
|
||||||
|
124
src/services/api/services/DrillFlowChartService.ts
Normal file
124
src/services/api/services/DrillFlowChartService.ts
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
import type { DrillFlowChartParamsDto } from '../models/DrillFlowChartParamsDto';
|
||||||
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
|
export class DrillFlowChartService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Возвращает все значения для корридоров бурения по id скважины
|
||||||
|
* @param idWell id скважины
|
||||||
|
* @returns DrillFlowChartParamsDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getAll(
|
||||||
|
idWell: number,
|
||||||
|
): Promise<Array<DrillFlowChartParamsDto>> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/drillFlowChartParams/${idWell}/paramsByIdWell`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Возвращает все значения для корридоров бурения по uid панели
|
||||||
|
* @param idWell
|
||||||
|
* @param uid uid панели
|
||||||
|
* @returns DrillFlowChartParamsDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getAll1(
|
||||||
|
idWell: string,
|
||||||
|
uid?: string,
|
||||||
|
): Promise<Array<DrillFlowChartParamsDto>> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/drillFlowChartParams/${idWell}`,
|
||||||
|
query: {
|
||||||
|
'uid': uid,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Сохраняет значения для корридоров бурения
|
||||||
|
* @param idWell id скважины
|
||||||
|
* @param requestBody Параметры корридоров бурения
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
idWell: number,
|
||||||
|
requestBody?: DrillFlowChartParamsDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/drillFlowChartParams/${idWell}`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Изменяет значения выбранного корридора бурения
|
||||||
|
* @param idWell id скважины
|
||||||
|
* @param requestBody Параметры корридоров бурения
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async edit(
|
||||||
|
idWell: number,
|
||||||
|
requestBody?: DrillFlowChartParamsDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'PUT',
|
||||||
|
path: `/api/drillFlowChartParams/${idWell}`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Удаляет значения выбранного корридора бурения
|
||||||
|
* @param idWell id скважины
|
||||||
|
* @param drillFlowChartParamsId Id объекта корридоров бурения
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async delete(
|
||||||
|
idWell: number,
|
||||||
|
drillFlowChartParamsId?: number,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'DELETE',
|
||||||
|
path: `/api/drillFlowChartParams/${idWell}`,
|
||||||
|
query: {
|
||||||
|
'drillFlowChartParamsId': drillFlowChartParamsId,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавляет массив объектов корридоров бурения
|
||||||
|
* @param idWell id скважины
|
||||||
|
* @param requestBody Массив объектов параметров корридоров бурения
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insertRange(
|
||||||
|
idWell: number,
|
||||||
|
requestBody?: Array<DrillFlowChartParamsDto>,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/drillFlowChartParams/${idWell}/range`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -68,17 +68,22 @@ export class DrillParamsService {
|
|||||||
/**
|
/**
|
||||||
* Изменяет значения выбранного режима бурения
|
* Изменяет значения выбранного режима бурения
|
||||||
* @param idWell id скважины
|
* @param idWell id скважины
|
||||||
|
* @param dtoId id dto для изменения
|
||||||
* @param requestBody Параметры режимов бурений для секции
|
* @param requestBody Параметры режимов бурений для секции
|
||||||
* @returns number Success
|
* @returns number Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async edit(
|
public static async update(
|
||||||
idWell: number,
|
idWell: number,
|
||||||
|
dtoId?: number,
|
||||||
requestBody?: DrillParamsDto,
|
requestBody?: DrillParamsDto,
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
path: `/api/drillParams/${idWell}`,
|
path: `/api/drillParams/${idWell}`,
|
||||||
|
query: {
|
||||||
|
'dtoId': dtoId,
|
||||||
|
},
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
|
Loading…
Reference in New Issue
Block a user