Новые 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 */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { WellDto } from './WellDto';
export type ClusterDto = { export type ClusterDto = {
id?: number; id?: number;
caption?: string | null; caption?: string | null;
description?: string | null; description?: string | null;
latitude?: number | null; latitude?: number | null;
longitude?: number | null; longitude?: number | null;
wells?: Array<WellDto> | null;
} }

View File

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

View File

@ -2,10 +2,13 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ClusterDto } from './ClusterDto';
export type DepositDto = { export type DepositDto = {
id?: number; id?: number;
name?: string | null; caption?: string | null;
description?: string | null; description?: string | null;
latitude?: number | null; latitude?: number | null;
longitude?: 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; cluster?: string | null;
deposit?: string | null; deposit?: string | null;
id?: number; id?: number;
lastData?: any;
latitude?: number | null; latitude?: number | null;
longitude?: number | null; longitude?: number | null;
wellType?: string | null; wellType?: string | null;

View File

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

View File

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