Сервисы обновлены

This commit is contained in:
goodmice 2021-10-12 15:01:07 +05:00
parent b6b7a0bc43
commit 92f95b5fe2
5 changed files with 24 additions and 24 deletions

View File

@ -20,7 +20,7 @@ export type DrillParamsDto = {
topDriveSpeedMin?: number;
topDriveSpeedAvg?: number;
topDriveSpeedMax?: number;
consumptionMin?: number;
consumptionAvg?: number;
consumptionMax?: number;
flowMin?: number;
flowAvg?: number;
flowMax?: number;
}

View File

@ -25,8 +25,8 @@ export class AdminTelemetryService {
* @throws ApiError
*/
public static async mergeTelemetries(
requestBody?: Array<number>,
): Promise<any> {
requestBody?: Array<number>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/merge`,

View File

@ -15,10 +15,10 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async getDefaultDrillParams(
idWell?: number,
startDepth?: number,
endDepth?: number,
): Promise<DrillParamsDto> {
idWell?: number,
startDepth?: number,
endDepth?: number,
): Promise<DrillParamsDto> {
const result = await __request({
method: 'GET',
path: `/drillParams/idWell/autoParams`,
@ -39,9 +39,9 @@ endDepth?: number,
* @throws ApiError
*/
public static async saveDrillParams(
idWell?: number,
requestBody?: DrillParamsDto,
): Promise<number> {
idWell?: number,
requestBody?: DrillParamsDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/drillParams/idWell`,

View File

@ -51,7 +51,7 @@ export class FileService {
fileName?: string,
begin?: string,
end?: string,
skip: number,
skip: number = 0,
take: number = 32,
): Promise<FileInfoDtoPaginationContainer> {
const result = await __request({

View File

@ -48,7 +48,7 @@ export class WellOperationService {
end?: string,
minDepth: number = -1.7976931348623157e+308,
maxDepth: number = 1.7976931348623157e+308,
skip: number,
skip: number = 0,
take: number = 32,
): Promise<WellOperationDtoPaginationContainer> {
const result = await __request({
@ -149,15 +149,15 @@ export class WellOperationService {
* Импортирует операции из excel (xlsx) файла
* @param idWell id скважины
* @param options Удалить операции перед импортом = 1, если фал валидный
* @param requestBody
* @param requestBody
* @returns any Success
* @throws ApiError
*/
public static async import(
idWell: number,
options: number,
requestBody?: any,
): Promise<any> {
idWell: number,
options: number,
requestBody?: any,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/wellOperations/import/${options}`,
@ -173,8 +173,8 @@ requestBody?: any,
* @throws ApiError
*/
public static async export(
idWell: number,
): Promise<string> {
idWell: number,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/export`,
@ -184,13 +184,13 @@ idWell: number,
/**
* Возвращает шаблон файла импорта
* @param idWell
* @param idWell
* @returns string Success
* @throws ApiError
*/
public static async getTamplate(
idWell: string,
): Promise<string> {
idWell: string,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/tamplate`,