forked from ddrilling/asb_cloud_front
Сервисы обновлены
This commit is contained in:
parent
7b8e5dcf9a
commit
09a068ab04
@ -6,13 +6,10 @@ export { OpenAPI } from './core/OpenAPI';
|
|||||||
|
|
||||||
export type { AuthDto } from './models/AuthDto';
|
export type { AuthDto } from './models/AuthDto';
|
||||||
export type { ClusterDto } from './models/ClusterDto';
|
export type { ClusterDto } from './models/ClusterDto';
|
||||||
export type { ClusterDtoPaginationContainer } from './models/ClusterDtoPaginationContainer';
|
|
||||||
export type { ClusterRopStatDto } from './models/ClusterRopStatDto';
|
export type { ClusterRopStatDto } from './models/ClusterRopStatDto';
|
||||||
export type { CompanyDto } from './models/CompanyDto';
|
export type { CompanyDto } from './models/CompanyDto';
|
||||||
export type { CompanyDtoPaginationContainer } from './models/CompanyDtoPaginationContainer';
|
|
||||||
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 { DepositDtoPaginationContainer } from './models/DepositDtoPaginationContainer';
|
|
||||||
export type { DrillFlowChartDto } from './models/DrillFlowChartDto';
|
export type { DrillFlowChartDto } from './models/DrillFlowChartDto';
|
||||||
export type { DrillParamsDto } from './models/DrillParamsDto';
|
export type { DrillParamsDto } from './models/DrillParamsDto';
|
||||||
export type { EventDto } from './models/EventDto';
|
export type { EventDto } from './models/EventDto';
|
||||||
@ -23,6 +20,8 @@ export type { FilePublishInfoDto } from './models/FilePublishInfoDto';
|
|||||||
export type { MeasureDto } from './models/MeasureDto';
|
export type { MeasureDto } from './models/MeasureDto';
|
||||||
export type { MessageDto } from './models/MessageDto';
|
export type { MessageDto } from './models/MessageDto';
|
||||||
export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer';
|
export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer';
|
||||||
|
export type { PermissionDto } from './models/PermissionDto';
|
||||||
|
export type { PermissionInfoDto } from './models/PermissionInfoDto';
|
||||||
export type { SetpointInfoDto } from './models/SetpointInfoDto';
|
export type { SetpointInfoDto } from './models/SetpointInfoDto';
|
||||||
export type { SetpointsRequestDto } from './models/SetpointsRequestDto';
|
export type { SetpointsRequestDto } from './models/SetpointsRequestDto';
|
||||||
export type { StatClusterDto } from './models/StatClusterDto';
|
export type { StatClusterDto } from './models/StatClusterDto';
|
||||||
@ -33,7 +32,6 @@ export type { StatWellDto } from './models/StatWellDto';
|
|||||||
export type { TelemetryDataSaubDto } from './models/TelemetryDataSaubDto';
|
export type { TelemetryDataSaubDto } from './models/TelemetryDataSaubDto';
|
||||||
export type { TelemetryDataSpinDto } from './models/TelemetryDataSpinDto';
|
export type { TelemetryDataSpinDto } from './models/TelemetryDataSpinDto';
|
||||||
export type { TelemetryDto } from './models/TelemetryDto';
|
export type { TelemetryDto } from './models/TelemetryDto';
|
||||||
export type { TelemetryDtoPaginationContainer } from './models/TelemetryDtoPaginationContainer';
|
|
||||||
export type { TelemetryInfoDto } from './models/TelemetryInfoDto';
|
export type { TelemetryInfoDto } from './models/TelemetryInfoDto';
|
||||||
export type { TelemetryMessageDto } from './models/TelemetryMessageDto';
|
export type { TelemetryMessageDto } from './models/TelemetryMessageDto';
|
||||||
export type { TelemetryOperationDto } from './models/TelemetryOperationDto';
|
export type { TelemetryOperationDto } from './models/TelemetryOperationDto';
|
||||||
@ -42,15 +40,12 @@ export type { TelemetryOperationDurationDto } from './models/TelemetryOperationD
|
|||||||
export type { TelemetryTimeZoneDto } from './models/TelemetryTimeZoneDto';
|
export type { TelemetryTimeZoneDto } from './models/TelemetryTimeZoneDto';
|
||||||
export type { TelemetryUserDto } from './models/TelemetryUserDto';
|
export type { TelemetryUserDto } from './models/TelemetryUserDto';
|
||||||
export type { UserDto } from './models/UserDto';
|
export type { UserDto } from './models/UserDto';
|
||||||
export type { UserDtoPaginationContainer } from './models/UserDtoPaginationContainer';
|
|
||||||
export type { UserRoleDto } from './models/UserRoleDto';
|
export type { UserRoleDto } from './models/UserRoleDto';
|
||||||
export type { UserRoleDtoPaginationContainer } from './models/UserRoleDtoPaginationContainer';
|
|
||||||
export type { UserTokenDto } from './models/UserTokenDto';
|
export type { UserTokenDto } from './models/UserTokenDto';
|
||||||
export type { WellCompositeDto } from './models/WellCompositeDto';
|
export type { WellCompositeDto } from './models/WellCompositeDto';
|
||||||
export type { WellDepthToDayDto } from './models/WellDepthToDayDto';
|
export type { WellDepthToDayDto } from './models/WellDepthToDayDto';
|
||||||
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
|
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
|
||||||
export type { WellDto } from './models/WellDto';
|
export type { WellDto } from './models/WellDto';
|
||||||
export type { WellDtoPaginationContainer } from './models/WellDtoPaginationContainer';
|
|
||||||
export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto';
|
export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto';
|
||||||
export type { WellOperationDto } from './models/WellOperationDto';
|
export type { WellOperationDto } from './models/WellOperationDto';
|
||||||
export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer';
|
export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer';
|
||||||
@ -60,6 +55,8 @@ export type { WellParamsDto } from './models/WellParamsDto';
|
|||||||
export { AdminClusterService } from './services/AdminClusterService';
|
export { AdminClusterService } from './services/AdminClusterService';
|
||||||
export { AdminCompanyService } from './services/AdminCompanyService';
|
export { AdminCompanyService } from './services/AdminCompanyService';
|
||||||
export { AdminDepositService } from './services/AdminDepositService';
|
export { AdminDepositService } from './services/AdminDepositService';
|
||||||
|
export { AdminPermissionInfoService } from './services/AdminPermissionInfoService';
|
||||||
|
export { AdminPermissionService } from './services/AdminPermissionService';
|
||||||
export { AdminTelemetryService } from './services/AdminTelemetryService';
|
export { AdminTelemetryService } from './services/AdminTelemetryService';
|
||||||
export { AdminUserRoleService } from './services/AdminUserRoleService';
|
export { AdminUserRoleService } from './services/AdminUserRoleService';
|
||||||
export { AdminUserService } from './services/AdminUserService';
|
export { AdminUserService } from './services/AdminUserService';
|
||||||
|
@ -7,7 +7,6 @@ import type { WellDto } from './WellDto';
|
|||||||
export type ClusterDto = {
|
export type ClusterDto = {
|
||||||
id?: number;
|
id?: number;
|
||||||
caption?: string | null;
|
caption?: string | null;
|
||||||
description?: string | null;
|
|
||||||
latitude?: number | null;
|
latitude?: number | null;
|
||||||
longitude?: number | null;
|
longitude?: number | null;
|
||||||
wells?: Array<WellDto> | null;
|
wells?: Array<WellDto> | null;
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { ClusterDto } from './ClusterDto';
|
|
||||||
|
|
||||||
export type ClusterDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<ClusterDto> | null;
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { CompanyDto } from './CompanyDto';
|
|
||||||
|
|
||||||
export type CompanyDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<CompanyDto> | null;
|
|
||||||
}
|
|
@ -7,7 +7,6 @@ import type { ClusterDto } from './ClusterDto';
|
|||||||
export type DepositDto = {
|
export type DepositDto = {
|
||||||
id?: number;
|
id?: number;
|
||||||
caption?: string | null;
|
caption?: string | null;
|
||||||
description?: string | null;
|
|
||||||
latitude?: number | null;
|
latitude?: number | null;
|
||||||
longitude?: number | null;
|
longitude?: number | null;
|
||||||
clusters?: Array<ClusterDto> | null;
|
clusters?: Array<ClusterDto> | null;
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { DepositDto } from './DepositDto';
|
|
||||||
|
|
||||||
export type DepositDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<DepositDto> | null;
|
|
||||||
}
|
|
9
src/services/api/models/PermissionDto.ts
Normal file
9
src/services/api/models/PermissionDto.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
export type PermissionDto = {
|
||||||
|
idUserRole?: number;
|
||||||
|
idPermission?: number;
|
||||||
|
permissionValue?: number;
|
||||||
|
}
|
10
src/services/api/models/PermissionInfoDto.ts
Normal file
10
src/services/api/models/PermissionInfoDto.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
export type PermissionInfoDto = {
|
||||||
|
id?: number;
|
||||||
|
name?: string | null;
|
||||||
|
description?: string | null;
|
||||||
|
bitDescription?: Record<string, string> | null;
|
||||||
|
}
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { TelemetryDto } from './TelemetryDto';
|
|
||||||
|
|
||||||
export type TelemetryDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<TelemetryDto> | null;
|
|
||||||
}
|
|
@ -6,7 +6,6 @@ import type { CompanyDto } from './CompanyDto';
|
|||||||
|
|
||||||
export type UserDto = {
|
export type UserDto = {
|
||||||
login?: string | null;
|
login?: string | null;
|
||||||
level?: number | null;
|
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
surname?: string | null;
|
surname?: string | null;
|
||||||
patronymic?: string | null;
|
patronymic?: string | null;
|
||||||
@ -15,7 +14,6 @@ export type UserDto = {
|
|||||||
position?: string | null;
|
position?: string | null;
|
||||||
id?: number;
|
id?: number;
|
||||||
idCompany?: number | null;
|
idCompany?: number | null;
|
||||||
idRole?: number | null;
|
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
company?: CompanyDto;
|
company?: CompanyDto;
|
||||||
}
|
}
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { UserDto } from './UserDto';
|
|
||||||
|
|
||||||
export type UserDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<UserDto> | null;
|
|
||||||
}
|
|
@ -2,10 +2,12 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { UserDto } from './UserDto';
|
import type { PermissionDto } from './PermissionDto';
|
||||||
|
|
||||||
export type UserRoleDto = {
|
export type UserRoleDto = {
|
||||||
id?: number;
|
id?: number;
|
||||||
caption?: string | null;
|
caption?: string | null;
|
||||||
users?: Array<UserDto> | null;
|
idParent?: number | null;
|
||||||
|
idType?: number;
|
||||||
|
permissions?: Array<PermissionDto> | null;
|
||||||
}
|
}
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { UserRoleDto } from './UserRoleDto';
|
|
||||||
|
|
||||||
export type UserRoleDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<UserRoleDto> | null;
|
|
||||||
}
|
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
export type UserTokenDto = {
|
export type UserTokenDto = {
|
||||||
login?: string | null;
|
login?: string | null;
|
||||||
level?: number | null;
|
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
surname?: string | null;
|
surname?: string | null;
|
||||||
patronymic?: string | null;
|
patronymic?: string | null;
|
||||||
@ -13,6 +12,7 @@ export type UserTokenDto = {
|
|||||||
position?: string | null;
|
position?: string | null;
|
||||||
id?: number;
|
id?: number;
|
||||||
companyName?: string | null;
|
companyName?: string | null;
|
||||||
roleName?: string | null;
|
roleNames?: Array<string> | null;
|
||||||
|
permissions?: Record<string, number> | null;
|
||||||
token?: string | null;
|
token?: string | null;
|
||||||
}
|
}
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
import type { WellDto } from './WellDto';
|
|
||||||
|
|
||||||
export type WellDtoPaginationContainer = {
|
|
||||||
skip?: number;
|
|
||||||
take?: number;
|
|
||||||
count?: number;
|
|
||||||
items?: Array<WellDto> | null;
|
|
||||||
}
|
|
@ -2,46 +2,19 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { ClusterDto } from '../models/ClusterDto';
|
import type { ClusterDto } from '../models/ClusterDto';
|
||||||
import type { ClusterDtoPaginationContainer } from '../models/ClusterDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminClusterService {
|
export class AdminClusterService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns ClusterDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns ClusterDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<ClusterDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<ClusterDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/cluster`,
|
path: `/api/admin/cluster/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: ClusterDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/cluster`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -97,4 +70,21 @@ export class AdminClusterService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: ClusterDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/cluster`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -2,46 +2,19 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { CompanyDto } from '../models/CompanyDto';
|
import type { CompanyDto } from '../models/CompanyDto';
|
||||||
import type { CompanyDtoPaginationContainer } from '../models/CompanyDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminCompanyService {
|
export class AdminCompanyService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns CompanyDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns CompanyDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<CompanyDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<CompanyDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/company`,
|
path: `/api/admin/company/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: CompanyDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/company`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -97,4 +70,21 @@ export class AdminCompanyService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: CompanyDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/company`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -2,46 +2,19 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { DepositDto } from '../models/DepositDto';
|
import type { DepositDto } from '../models/DepositDto';
|
||||||
import type { DepositDtoPaginationContainer } from '../models/DepositDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminDepositService {
|
export class AdminDepositService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns DepositDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns DepositDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<DepositDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<DepositDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/deposit`,
|
path: `/api/admin/deposit/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: DepositDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/deposit`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -97,4 +70,21 @@ export class AdminDepositService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: DepositDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/deposit`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
90
src/services/api/services/AdminPermissionInfoService.ts
Normal file
90
src/services/api/services/AdminPermissionInfoService.ts
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
import type { PermissionInfoDto } from '../models/PermissionInfoDto';
|
||||||
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
|
export class AdminPermissionInfoService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Получить все записи
|
||||||
|
* @returns PermissionInfoDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getAll(): Promise<Array<PermissionInfoDto>> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/admin/permissionInfo/all`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Получить одну запись по Id
|
||||||
|
* @param id id записи
|
||||||
|
* @returns PermissionInfoDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async get(
|
||||||
|
id: number,
|
||||||
|
): Promise<PermissionInfoDto> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/admin/permissionInfo/${id}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Редактировать запись по id
|
||||||
|
* @param id id записи
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async put(
|
||||||
|
id: number,
|
||||||
|
requestBody?: PermissionInfoDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'PUT',
|
||||||
|
path: `/api/admin/permissionInfo/${id}`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Удалить запись по id
|
||||||
|
* @param id id записи
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async delete(
|
||||||
|
id: number,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'DELETE',
|
||||||
|
path: `/api/admin/permissionInfo/${id}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: PermissionInfoDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/permissionInfo`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
80
src/services/api/services/AdminPermissionService.ts
Normal file
80
src/services/api/services/AdminPermissionService.ts
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
import type { PermissionDto } from '../models/PermissionDto';
|
||||||
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
|
export class AdminPermissionService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Получает список всех разрешений для роли
|
||||||
|
* @param idRole id роли
|
||||||
|
* @returns PermissionDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getByIdRole(
|
||||||
|
idRole?: number,
|
||||||
|
): Promise<Array<PermissionDto>> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/admin/permission`,
|
||||||
|
query: {
|
||||||
|
'idRole': idRole,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавляет разрешения для роли
|
||||||
|
* @param requestBody Объекты новых разрешений для справочника
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insertRange(
|
||||||
|
requestBody?: Array<PermissionDto>,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/permission`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Обновляет разрешение для роли
|
||||||
|
* @param requestBody Объект разрешения для справочника
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async update(
|
||||||
|
requestBody?: PermissionDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'PUT',
|
||||||
|
path: `/api/admin/permission`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Удаляет разрешение для роли
|
||||||
|
* @param idUserRole id роли для удаления разрешения
|
||||||
|
* @param idPermission id разрешения
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async delete(
|
||||||
|
idUserRole: number,
|
||||||
|
idPermission: number,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'DELETE',
|
||||||
|
path: `/api/admin/permission/${idPermission}/${idUserRole}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -2,7 +2,6 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { TelemetryDto } from '../models/TelemetryDto';
|
import type { TelemetryDto } from '../models/TelemetryDto';
|
||||||
import type { TelemetryDtoPaginationContainer } from '../models/TelemetryDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminTelemetryService {
|
export class AdminTelemetryService {
|
||||||
@ -37,40 +36,14 @@ export class AdminTelemetryService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns TelemetryDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns TelemetryDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<TelemetryDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<TelemetryDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/telemetry`,
|
path: `/api/admin/telemetry/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: TelemetryDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/telemetry`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -126,4 +99,21 @@ export class AdminTelemetryService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: TelemetryDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/telemetry`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -2,46 +2,19 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { UserRoleDto } from '../models/UserRoleDto';
|
import type { UserRoleDto } from '../models/UserRoleDto';
|
||||||
import type { UserRoleDtoPaginationContainer } from '../models/UserRoleDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminUserRoleService {
|
export class AdminUserRoleService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns UserRoleDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns UserRoleDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<UserRoleDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<UserRoleDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/user/role`,
|
path: `/api/admin/role/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: UserRoleDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/user/role`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -57,7 +30,7 @@ export class AdminUserRoleService {
|
|||||||
): Promise<UserRoleDto> {
|
): Promise<UserRoleDto> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/user/role/${id}`,
|
path: `/api/admin/role/${id}`,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -75,7 +48,7 @@ export class AdminUserRoleService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
path: `/api/admin/user/role/${id}`,
|
path: `/api/admin/role/${id}`,
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -92,7 +65,24 @@ export class AdminUserRoleService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
path: `/api/admin/user/role/${id}`,
|
path: `/api/admin/role/${id}`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: UserRoleDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/role`,
|
||||||
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
@ -2,46 +2,19 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { UserDto } from '../models/UserDto';
|
import type { UserDto } from '../models/UserDto';
|
||||||
import type { UserDtoPaginationContainer } from '../models/UserDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminUserService {
|
export class AdminUserService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns UserDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns UserDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<UserDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<UserDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/user`,
|
path: `/api/admin/user/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: UserDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/user`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -97,4 +70,21 @@ export class AdminUserService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: UserDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/user`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -2,46 +2,19 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { WellDto } from '../models/WellDto';
|
import type { WellDto } from '../models/WellDto';
|
||||||
import type { WellDtoPaginationContainer } from '../models/WellDtoPaginationContainer';
|
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class AdminWellService {
|
export class AdminWellService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить все записи
|
||||||
* @param skip пропустить skip записей
|
* @returns WellDto Success
|
||||||
* @param take получить take записей
|
|
||||||
* @returns WellDtoPaginationContainer Success
|
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getPage(
|
public static async getAll(): Promise<Array<WellDto>> {
|
||||||
skip: number,
|
|
||||||
take: number = 32,
|
|
||||||
): Promise<WellDtoPaginationContainer> {
|
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/admin/well`,
|
path: `/api/admin/well/all`,
|
||||||
query: {
|
|
||||||
'skip': skip,
|
|
||||||
'take': take,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Добавить запись
|
|
||||||
* @param requestBody запись
|
|
||||||
* @returns number Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async insert(
|
|
||||||
requestBody?: WellDto,
|
|
||||||
): Promise<number> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'POST',
|
|
||||||
path: `/api/admin/well`,
|
|
||||||
body: requestBody,
|
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -97,4 +70,21 @@ export class AdminWellService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Добавить запись
|
||||||
|
* @param requestBody запись
|
||||||
|
* @returns number Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async insert(
|
||||||
|
requestBody?: WellDto,
|
||||||
|
): Promise<number> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/admin/well`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -6,7 +6,8 @@ import { request as __request } from '../core/request';
|
|||||||
export class RequerstTrackerService {
|
export class RequerstTrackerService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param take
|
* Получить последние `take` запросов к серверу
|
||||||
|
* @param take от 1 до 1000
|
||||||
* @returns any Success
|
* @returns any Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
@ -24,7 +25,8 @@ export class RequerstTrackerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param take
|
* Получить последние `take` быстрых запросов к серверу
|
||||||
|
* @param take от 1 до 1000
|
||||||
* @returns any Success
|
* @returns any Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
@ -42,7 +44,8 @@ export class RequerstTrackerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param take
|
* Получить последние `take` медленных запросов к серверу
|
||||||
|
* @param take от 1 до 1000
|
||||||
* @returns any Success
|
* @returns any Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
@ -60,7 +63,8 @@ export class RequerstTrackerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param take
|
* Получить последние `take` ошибок при выполнении запросов
|
||||||
|
* @param take от 1 до 1000
|
||||||
* @returns any Success
|
* @returns any Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
@ -78,7 +82,8 @@ export class RequerstTrackerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param take
|
* Получить последних пользователей обращавшихся к серверу. Уникальность пользователя проверяется по логину и Ip.
|
||||||
|
* @param take от 1 до 1000
|
||||||
* @returns any Success
|
* @returns any Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user