Новые Dto для нового функционала

This commit is contained in:
KharchenkoVV 2021-07-26 11:13:17 +05:00
parent 87a7faa17f
commit 4355930277
8 changed files with 37 additions and 8 deletions

View File

@ -2,10 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import type { WellDto } from './WellDto';
export type ClusterDto = {
id?: number;
caption?: string | null;
description?: string | null;
latitude?: number | null;
longitude?: number | null;
wells?: Array<WellDto> | null;
}

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { WellDto } from './WellDto';
import type { WellStatDto } from './WellStatDto';
export type ClusterStatDto = {
@ -10,5 +11,6 @@ export type ClusterStatDto = {
description?: string | null;
latitude?: number | null;
longitude?: number | null;
wells?: Array<WellDto> | null;
wellsStat?: Array<WellStatDto> | null;
}

View File

@ -2,10 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import type { ClusterDto } from './ClusterDto';
export type DepositDto = {
id?: number;
name?: string | null;
caption?: string | null;
description?: string | null;
latitude?: number | null;
longitude?: number | null;
clusters?: Array<ClusterDto> | null;
}

View File

@ -0,0 +1,11 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type FilePropertiesDto = {
id?: number;
name?: string | null;
idCategory?: number;
uploadDate?: string;
userName?: string | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { FilePropertiesDto } from './FilePropertiesDto';
export type FilePropertiesDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<FilePropertiesDto> | null;
}

View File

@ -7,7 +7,6 @@ export type WellDto = {
cluster?: string | null;
deposit?: string | null;
id?: number;
lastData?: any;
latitude?: number | null;
longitude?: number | null;
wellType?: string | null;

View File

@ -10,7 +10,6 @@ export type WellStatDto = {
cluster?: string | null;
deposit?: string | null;
id?: number;
lastData?: any;
latitude?: number | null;
longitude?: number | null;
wellType?: string | null;

View File

@ -14,9 +14,9 @@ export class AnalyticsService {
* @param wellId id скважины
* @param skip для пагинации кол-во записей пропустить
* @param take для пагинации кол-во записей
* @param categoryids
* @param begin
* @param end
* @param categoryIds список категорий
* @param begin дата начала
* @param end окончание
* @returns OperationDtoPaginationContainer Success
* @throws ApiError
*/
@ -24,7 +24,7 @@ export class AnalyticsService {
wellId: number,
skip: number,
take: number = 32,
categoryids?: Array<number>,
categoryIds?: Array<number>,
begin?: string,
end?: string,
): Promise<OperationDtoPaginationContainer> {
@ -34,7 +34,7 @@ end?: string,
query: {
'skip': skip,
'take': take,
'categoryids': categoryids,
'categoryIds': categoryIds,
'begin': begin,
'end': end,
},