优化接口封装
This commit is contained in:
parent
b4b7eac73c
commit
ecebc32a99
3
apps/web-antd/src/api-client/IoTClient/index.ts
Normal file
3
apps/web-antd/src/api-client/IoTClient/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// IoTClient 主入口文件
|
||||||
|
export * from './services';
|
||||||
|
export * from './types';
|
||||||
301
apps/web-antd/src/api-client/IoTClient/services.ts
Normal file
301
apps/web-antd/src/api-client/IoTClient/services.ts
Normal file
@ -0,0 +1,301 @@
|
|||||||
|
import type { Options } from '@hey-api/client-axios';
|
||||||
|
|
||||||
|
import type {
|
||||||
|
DeviceArchivesDown,
|
||||||
|
DeviceInfoPageListInput,
|
||||||
|
DeviceInfoPageListResult,
|
||||||
|
IoTDBCTWingLogInfoDtoPageListInput,
|
||||||
|
IoTDBCTWingLogInfoDtoPageListResult,
|
||||||
|
IoTDBOneNETLogInfoPageListInput,
|
||||||
|
IoTDBOneNETLogInfoPageListResult,
|
||||||
|
IoTDBTreeModelDeviceDataPageAllResponse,
|
||||||
|
IoTDBTreeModelDeviceDataPageDataInput,
|
||||||
|
IoTErrorResponse,
|
||||||
|
OneNetAccountDeleteInput,
|
||||||
|
OneNETAccountDeleteResponse,
|
||||||
|
OneNetAccountInsertInput,
|
||||||
|
OneNetAccountInsertResponse,
|
||||||
|
OneNetAccountModifyInput,
|
||||||
|
OneNetAccountModifyResponse,
|
||||||
|
OneNETAccountPageListInput,
|
||||||
|
OneNETAccountPageListResult,
|
||||||
|
OneNETProductCreateInput,
|
||||||
|
OneNETProductCreateResponse,
|
||||||
|
OneNETProductPageListInput,
|
||||||
|
OneNETProductPageListResult,
|
||||||
|
PostDeviceInfoCreateData,
|
||||||
|
PostUsersPageData,
|
||||||
|
SelectResultListAllResponse,
|
||||||
|
SelectResultListInput,
|
||||||
|
} from './types';
|
||||||
|
|
||||||
|
import {
|
||||||
|
createClient,
|
||||||
|
createConfig,
|
||||||
|
formDataBodySerializer,
|
||||||
|
} from '@hey-api/client-axios';
|
||||||
|
|
||||||
|
export const client = createClient(createConfig());
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取设备管理分页
|
||||||
|
*/
|
||||||
|
export const postDeviceInfoPage = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<DeviceInfoPageListInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
DeviceInfoPageListResult,
|
||||||
|
PostRolesAllError,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/DeviceInfo/Page',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* 创建设备
|
||||||
|
*/
|
||||||
|
export const postDeviceInfoCreate = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<PostDeviceInfoCreateData, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
PostUsersCreateResponse,
|
||||||
|
PostUsersCreateError,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/Aggregation/Device/Create',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* 编辑设备
|
||||||
|
*/
|
||||||
|
export const postDeviceInfoUpdate = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<PostDeviceInfoCreateData, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
PostUsersUpdateResponse,
|
||||||
|
PostUsersUpdateError,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/Aggregation/Device/Update',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* 删除设备
|
||||||
|
*/
|
||||||
|
export const postDeviceInfoDelete = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<PostUsersDeleteData, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
PostUsersDeleteResponse,
|
||||||
|
PostUsersDeleteError,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/Aggregation/Device/Delete',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 档案下发
|
||||||
|
*/
|
||||||
|
export const postDeviceInfoArchivesDown = <
|
||||||
|
ThrowOnError extends boolean = false,
|
||||||
|
>(
|
||||||
|
options?: Options<DeviceArchivesDown, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
PostUsersDeleteResponse,
|
||||||
|
PostUsersDeleteError,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/DeviceInfo/ArchivesDown',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取遥测日志分页
|
||||||
|
*/
|
||||||
|
export const postTableModelPacketInfoPage = <
|
||||||
|
ThrowOnError extends boolean = false,
|
||||||
|
>(
|
||||||
|
options?: Options<PostUsersPageData, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
PostRolesAllResponse,
|
||||||
|
PostRolesAllError,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/TableModel/PacketInfoPage',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取IoTDB设备树模型数据分页
|
||||||
|
*/
|
||||||
|
export const postTreeModelDeviceDataInfoPage = <
|
||||||
|
ThrowOnError extends boolean = false,
|
||||||
|
>(
|
||||||
|
options?: Options<IoTDBTreeModelDeviceDataPageDataInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
IoTDBTreeModelDeviceDataPageAllResponse,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
...formDataBodySerializer,
|
||||||
|
url: '/TreeModel/DeviceDataInfoPage',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取后端通用下拉框列表集合
|
||||||
|
*/
|
||||||
|
export const getSelectResultList = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<SelectResultListInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).get<
|
||||||
|
SelectResultListAllResponse,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/Common/GetSelectList',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 设备日志
|
||||||
|
*/
|
||||||
|
export const postOneNETLogInfoPage = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<IoTDBOneNETLogInfoPageListInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
IoTDBOneNETLogInfoPageListResult,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
...formDataBodySerializer,
|
||||||
|
url: '/TableModel/OneNETLogInfo',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CTWing 设备日志
|
||||||
|
*/
|
||||||
|
export const postCTWingLogInfoPage = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<IoTDBCTWingLogInfoDtoPageListInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
IoTDBCTWingLogInfoDtoPageListResult,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
...formDataBodySerializer,
|
||||||
|
url: '/TableModel/CTWingLogInfo',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 账号管理
|
||||||
|
*/
|
||||||
|
export const postOneNETAccountInfoPage = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<OneNETAccountPageListInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
OneNETAccountPageListResult,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/OneNETAccount/ListAsync',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 创建账号
|
||||||
|
*/
|
||||||
|
export const postOneNETAccountInsert = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<OneNetAccountInsertInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
OneNetAccountInsertResponse,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/OneNETAccount/InsertAsync',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 修改账号
|
||||||
|
*/
|
||||||
|
export const postOneNETAccountModify = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<OneNetAccountModifyInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
OneNetAccountModifyResponse,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/OneNETAccount/ModifyAsync',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 删除账号
|
||||||
|
*/
|
||||||
|
export const postOneNETAccountDelete = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<OneNetAccountDeleteInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
OneNETAccountDeleteResponse,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/OneNETAccount/DeleteAsync',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 产品管理
|
||||||
|
*/
|
||||||
|
export const postOneNETProductInfoPage = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<OneNETProductPageListInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
OneNETProductPageListResult,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
...formDataBodySerializer,
|
||||||
|
url: '/OneNETProduct/ListAsync',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OneNET 创建产品
|
||||||
|
*/
|
||||||
|
export const postOneNETProductCreate = <ThrowOnError extends boolean = false>(
|
||||||
|
options?: Options<OneNETProductCreateInput, ThrowOnError>,
|
||||||
|
) => {
|
||||||
|
return (options?.client ?? client).post<
|
||||||
|
OneNETProductCreateResponse,
|
||||||
|
IoTErrorResponse,
|
||||||
|
ThrowOnError
|
||||||
|
>({
|
||||||
|
...options,
|
||||||
|
url: '/OneNETProduct/InsertAsync',
|
||||||
|
});
|
||||||
|
};
|
||||||
259
apps/web-antd/src/api-client/IoTClient/types.ts
Normal file
259
apps/web-antd/src/api-client/IoTClient/types.ts
Normal file
@ -0,0 +1,259 @@
|
|||||||
|
export type IoTPageInput = {
|
||||||
|
/**
|
||||||
|
* 关键字
|
||||||
|
*/
|
||||||
|
filter?: null | string;
|
||||||
|
/**
|
||||||
|
* 当前页面.默认从1开始
|
||||||
|
*/
|
||||||
|
pageIndex?: number;
|
||||||
|
/**
|
||||||
|
* 每页多少条.每页显示多少记录
|
||||||
|
*/
|
||||||
|
pageSize?: number;
|
||||||
|
/**
|
||||||
|
* 跳过多少条
|
||||||
|
*/
|
||||||
|
readonly skipCount?: number;
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
* <example>
|
||||||
|
* name desc
|
||||||
|
* </example>
|
||||||
|
*/
|
||||||
|
sorting?: null | string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTIdInput = {
|
||||||
|
id?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTRemoteServiceValidationErrorInfo = {
|
||||||
|
members?: Array<string> | null;
|
||||||
|
message?: null | string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTErrorResponse = {
|
||||||
|
code?: null | string;
|
||||||
|
data?: null | {
|
||||||
|
[key: string]: unknown;
|
||||||
|
};
|
||||||
|
details?: null | string;
|
||||||
|
message?: null | string;
|
||||||
|
validationErrors?: Array<IoTRemoteServiceValidationErrorInfo> | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTDBTreeModelDeviceDataPageDataInput = {
|
||||||
|
body?: IoTPageInput;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTDBTreeModelDeviceDataDto = {
|
||||||
|
DeviceId?: null | string;
|
||||||
|
DeviceType?: null | string;
|
||||||
|
IoTDataType?: null | string;
|
||||||
|
ProjectId?: null | string;
|
||||||
|
ProjectName?: null | string;
|
||||||
|
SystemName?: null | string;
|
||||||
|
Timestamps?: null | string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTDBTreeModelDeviceDataPageListResultDto = {
|
||||||
|
items?: Array<IoTDBTreeModelDeviceDataDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTDBTreeModelDeviceDataPageAllResponse =
|
||||||
|
IoTDBTreeModelDeviceDataPageListResultDto;
|
||||||
|
|
||||||
|
export type SelectResultListInput = {
|
||||||
|
query?: {
|
||||||
|
ThirdAttributeTypeName?: null | string;
|
||||||
|
TypeName?: null | string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type SelectResultListDto = {
|
||||||
|
key?: null | string;
|
||||||
|
secondValue?: null | string;
|
||||||
|
thirdValue?: null | string;
|
||||||
|
value?: null | string;
|
||||||
|
};
|
||||||
|
export type SelectResultListAllResponse = {
|
||||||
|
items?: Array<SelectResultListDto> | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETLogInfoDto = {
|
||||||
|
deviceId: string;
|
||||||
|
devicePath: string;
|
||||||
|
deviceType: string;
|
||||||
|
focusAddress: string;
|
||||||
|
/** 数据类型 */
|
||||||
|
ioTDataType?: string;
|
||||||
|
isEncrypted: boolean;
|
||||||
|
messageType: string;
|
||||||
|
meterAddress: string;
|
||||||
|
plaintextMessage: string;
|
||||||
|
platformDeviceId: string;
|
||||||
|
productId: string;
|
||||||
|
projectId: string;
|
||||||
|
protocol: string;
|
||||||
|
rawMessage: string;
|
||||||
|
receivedPayload: string;
|
||||||
|
receivedTime: Date;
|
||||||
|
systemName: string;
|
||||||
|
timestamps: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTDBOneNETLogInfoPageListInput = {
|
||||||
|
body?: IoTPageInput;
|
||||||
|
};
|
||||||
|
export type IoTDBOneNETLogInfoPageListResult = {
|
||||||
|
items?: Array<OneNETLogInfoDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CTWingLogInfoDto = {
|
||||||
|
/** 设备ID */
|
||||||
|
deviceId?: string;
|
||||||
|
/** 设备路径 */
|
||||||
|
devicePath?: string;
|
||||||
|
/** 设备类型 */
|
||||||
|
deviceType?: string;
|
||||||
|
/** 集中器地址 */
|
||||||
|
focusAddress?: string;
|
||||||
|
/** IMEI */
|
||||||
|
imei?: string;
|
||||||
|
/** IMSI */
|
||||||
|
imsi?: string;
|
||||||
|
/** 数据类型 */
|
||||||
|
ioTDataType?: string;
|
||||||
|
/** 消息类型 */
|
||||||
|
messageType?: string;
|
||||||
|
/** 表计地址 */
|
||||||
|
meterAddress?: string;
|
||||||
|
/** 平台设备ID */
|
||||||
|
platformDeviceId?: string;
|
||||||
|
/** 平台租户ID */
|
||||||
|
platformTenantId?: string;
|
||||||
|
/** 产品ID */
|
||||||
|
productId?: string;
|
||||||
|
/** 项目ID */
|
||||||
|
projectId?: string;
|
||||||
|
/** 协议 */
|
||||||
|
protocol?: string;
|
||||||
|
/** 原始消息 */
|
||||||
|
rawMessage?: string;
|
||||||
|
/** 接收载荷 */
|
||||||
|
receivedPayload?: string;
|
||||||
|
/** 接收时间 */
|
||||||
|
receivedTime?: Date;
|
||||||
|
/** 服务ID */
|
||||||
|
serviceId?: string;
|
||||||
|
/** 系统名称 */
|
||||||
|
systemName?: string;
|
||||||
|
/** 时间戳 */
|
||||||
|
timestamps?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IoTDBCTWingLogInfoDtoPageListInput = {
|
||||||
|
body?: IoTPageInput;
|
||||||
|
};
|
||||||
|
export type IoTDBCTWingLogInfoDtoPageListResult = {
|
||||||
|
items?: Array<CTWingLogInfoDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETAccountDto = {
|
||||||
|
accesskey: string;
|
||||||
|
accountName: string;
|
||||||
|
oneNETAccountId?: string;
|
||||||
|
phoneNumber: string;
|
||||||
|
productCount: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETAccountPageListInput = {
|
||||||
|
body?: IoTPageInput;
|
||||||
|
};
|
||||||
|
export type OneNETAccountPageListResult = {
|
||||||
|
items?: Array<OneNETAccountDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNetAccountInsertInput = {
|
||||||
|
body?: OneNETAccountDto;
|
||||||
|
};
|
||||||
|
export type OneNetAccountInsertResponse = {
|
||||||
|
body?: OneNETAccountDto;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNetAccountModifyInput = {
|
||||||
|
body?: OneNETAccountDto;
|
||||||
|
};
|
||||||
|
export type OneNetAccountModifyResponse = {
|
||||||
|
body?: OneNETAccountDto;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNetAccountDeleteInput = {
|
||||||
|
body?: IoTIdInput;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETAccountDeleteResponse = {
|
||||||
|
body?: OneNETAccountDto;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETProductDto = {
|
||||||
|
ioTPlatformProductId: string;
|
||||||
|
isEncrypted?: string;
|
||||||
|
oneNETAccountId: string;
|
||||||
|
productAccesskey: string;
|
||||||
|
productName: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETProductPageListInput = {
|
||||||
|
body?: IoTPageInput;
|
||||||
|
};
|
||||||
|
export type OneNETProductPageListResult = {
|
||||||
|
items?: Array<OneNETProductDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type OneNETProductCreateInput = {
|
||||||
|
body?: OneNETProductDto;
|
||||||
|
};
|
||||||
|
export type OneNETProductCreateResponse = {
|
||||||
|
body?: OneNETProductDto;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeviceInfoDto = {
|
||||||
|
dynamicPassword?: boolean;
|
||||||
|
haveValve?: boolean;
|
||||||
|
id?: string;
|
||||||
|
meterAddress: number;
|
||||||
|
meterName: string;
|
||||||
|
meterType?: number;
|
||||||
|
password?: number | string;
|
||||||
|
selfDevelop?: boolean;
|
||||||
|
singleRate?: number | string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeviceInfoPageListInput = {
|
||||||
|
body?: IoTPageInput;
|
||||||
|
};
|
||||||
|
export type DeviceInfoPageListResult = {
|
||||||
|
items?: Array<DeviceInfoDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeviceArchivesDown = {
|
||||||
|
focusAddress: number | string;
|
||||||
|
meterAddress: number | string;
|
||||||
|
meterType: number | string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostDeviceCreateData = {
|
||||||
|
body?: DeviceInfoDto;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type postDeviceUpdateData = {
|
||||||
|
body?: DeviceInfoDto;
|
||||||
|
};
|
||||||
@ -2,3 +2,4 @@
|
|||||||
export * from './schemas.gen';
|
export * from './schemas.gen';
|
||||||
export * from './services.gen';
|
export * from './services.gen';
|
||||||
export * from './types.gen';
|
export * from './types.gen';
|
||||||
|
export * from './IoTClient';
|
||||||
|
|||||||
@ -3,9 +3,6 @@
|
|||||||
import type { Options, OptionsLegacyParser } from '@hey-api/client-axios';
|
import type { Options, OptionsLegacyParser } from '@hey-api/client-axios';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
DeviceArchivesDown,
|
|
||||||
DeviceInfoPageListInput,
|
|
||||||
DeviceInfoPageListResult,
|
|
||||||
GetApiAbpApiDefinitionData,
|
GetApiAbpApiDefinitionData,
|
||||||
GetApiAbpApiDefinitionError,
|
GetApiAbpApiDefinitionError,
|
||||||
GetApiAbpApiDefinitionResponse,
|
GetApiAbpApiDefinitionResponse,
|
||||||
@ -17,25 +14,6 @@ import type {
|
|||||||
GetApiAbpApplicationLocalizationResponse,
|
GetApiAbpApplicationLocalizationResponse,
|
||||||
GetApiAppAbpProBasicApplicationConfigurationError,
|
GetApiAppAbpProBasicApplicationConfigurationError,
|
||||||
GetApiAppAbpProBasicApplicationConfigurationResponse,
|
GetApiAppAbpProBasicApplicationConfigurationResponse,
|
||||||
IoTDBCTWingLogInfoDtoPageListInput,
|
|
||||||
IoTDBCTWingLogInfoDtoPageListResult,
|
|
||||||
IoTDBOneNETLogInfoPageListInput,
|
|
||||||
IoTDBOneNETLogInfoPageListResult,
|
|
||||||
IoTDBTreeModelDeviceDataPageAllResponse,
|
|
||||||
IoTDBTreeModelDeviceDataPageDataInput,
|
|
||||||
IoTErrorResponse,
|
|
||||||
OneNetAccountDeleteInput,
|
|
||||||
OneNETAccountDeleteResponse,
|
|
||||||
OneNetAccountInsertInput,
|
|
||||||
OneNetAccountInsertResponse,
|
|
||||||
OneNetAccountModifyInput,
|
|
||||||
OneNetAccountModifyResponse,
|
|
||||||
OneNETAccountPageListInput,
|
|
||||||
OneNETAccountPageListResult,
|
|
||||||
OneNETProductCreateInput,
|
|
||||||
OneNETProductCreateResponse,
|
|
||||||
OneNETProductPageListInput,
|
|
||||||
OneNETProductPageListResult,
|
|
||||||
PostApiAppAccountLogin2FaData,
|
PostApiAppAccountLogin2FaData,
|
||||||
PostApiAppAccountLogin2FaError,
|
PostApiAppAccountLogin2FaError,
|
||||||
PostApiAppAccountLogin2FaResponse,
|
PostApiAppAccountLogin2FaResponse,
|
||||||
@ -452,8 +430,6 @@ import type {
|
|||||||
PostUsersUpdateData,
|
PostUsersUpdateData,
|
||||||
PostUsersUpdateError,
|
PostUsersUpdateError,
|
||||||
PostUsersUpdateResponse,
|
PostUsersUpdateResponse,
|
||||||
SelectResultListAllResponse,
|
|
||||||
SelectResultListInput,
|
|
||||||
} from './types.gen';
|
} from './types.gen';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -2969,266 +2945,3 @@ export const postUsersNeedChangePassword = <
|
|||||||
url: '/Users/needChangePassword',
|
url: '/Users/needChangePassword',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取设备管理分页
|
|
||||||
*/
|
|
||||||
export const postDeviceInfoPage = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<DeviceInfoPageListInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
DeviceInfoPageListResult,
|
|
||||||
PostRolesAllError,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/DeviceInfo/Page',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* 创建设备
|
|
||||||
*/
|
|
||||||
export const postDeviceInfoCreate = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<PostDeviceInfoCreateData, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
PostUsersCreateResponse,
|
|
||||||
PostUsersCreateError,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/Aggregation/Device/Create',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* 编辑设备
|
|
||||||
*/
|
|
||||||
export const postDeviceInfoUpdate = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<PostDeviceInfoCreateData, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
PostUsersUpdateResponse,
|
|
||||||
PostUsersUpdateError,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/Aggregation/Device/Update',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* 删除设备
|
|
||||||
*/
|
|
||||||
export const postDeviceInfoDelete = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<PostUsersDeleteData, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
PostUsersDeleteResponse,
|
|
||||||
PostUsersDeleteError,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/Aggregation/Device/Delete',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 档案下发
|
|
||||||
*/
|
|
||||||
export const postDeviceInfoArchivesDown = <
|
|
||||||
ThrowOnError extends boolean = false,
|
|
||||||
>(
|
|
||||||
options?: Options<DeviceArchivesDown, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
PostUsersDeleteResponse,
|
|
||||||
PostUsersDeleteError,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/DeviceInfo/ArchivesDown',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取遥测日志分页
|
|
||||||
*/
|
|
||||||
export const postTableModelPacketInfoPage = <
|
|
||||||
ThrowOnError extends boolean = false,
|
|
||||||
>(
|
|
||||||
options?: Options<PostUsersPageData, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
PostRolesAllResponse,
|
|
||||||
PostRolesAllError,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/TableModel/PacketInfoPage',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取IoTDB设备树模型数据分页
|
|
||||||
*/
|
|
||||||
export const postTreeModelDeviceDataInfoPage = <
|
|
||||||
ThrowOnError extends boolean = false,
|
|
||||||
>(
|
|
||||||
options?: Options<IoTDBTreeModelDeviceDataPageDataInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
IoTDBTreeModelDeviceDataPageAllResponse,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
...formDataBodySerializer,
|
|
||||||
url: '/TreeModel/DeviceDataInfoPage',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取后端通用下拉框列表集合
|
|
||||||
*/
|
|
||||||
export const getSelectResultList = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<SelectResultListInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).get<
|
|
||||||
SelectResultListAllResponse,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/Common/GetSelectList',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 设备日志
|
|
||||||
*/
|
|
||||||
export const postOneNETLogInfoPage = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<IoTDBOneNETLogInfoPageListInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
IoTDBOneNETLogInfoPageListResult,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
...formDataBodySerializer,
|
|
||||||
url: '/TableModel/OneNETLogInfo',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* CTWing 设备日志
|
|
||||||
*/
|
|
||||||
export const postCTWingLogInfoPage = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<IoTDBCTWingLogInfoDtoPageListInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
IoTDBCTWingLogInfoDtoPageListResult,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
...formDataBodySerializer,
|
|
||||||
url: '/TableModel/CTWingLogInfo',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 账号管理
|
|
||||||
*/
|
|
||||||
export const postOneNETAccountInfoPage = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<OneNETAccountPageListInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
OneNETAccountPageListResult,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/OneNETAccount/ListAsync',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 创建账号
|
|
||||||
*/
|
|
||||||
export const postOneNETAccountInsert = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<OneNetAccountInsertInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
OneNetAccountInsertResponse,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/OneNETAccount/InsertAsync',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 修改账号
|
|
||||||
*/
|
|
||||||
export const postOneNETAccountModify = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<OneNetAccountModifyInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
OneNetAccountModifyResponse,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/OneNETAccount/ModifyAsync',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 删除账号
|
|
||||||
*/
|
|
||||||
export const postOneNETAccountDelete = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<OneNetAccountDeleteInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
OneNETAccountDeleteResponse,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/OneNETAccount/DeleteAsync',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 产品管理
|
|
||||||
*/
|
|
||||||
export const postOneNETProductInfoPage = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<OneNETProductPageListInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
OneNETProductPageListResult,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
...formDataBodySerializer,
|
|
||||||
url: '/OneNETProduct/ListAsync',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OneNET 创建产品
|
|
||||||
*/
|
|
||||||
export const postOneNETProductCreate = <ThrowOnError extends boolean = false>(
|
|
||||||
options?: Options<OneNETProductCreateInput, ThrowOnError>,
|
|
||||||
) => {
|
|
||||||
return (options?.client ?? client).post<
|
|
||||||
OneNETProductCreateResponse,
|
|
||||||
IoTErrorResponse,
|
|
||||||
ThrowOnError
|
|
||||||
>({
|
|
||||||
...options,
|
|
||||||
url: '/OneNETProduct/InsertAsync',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|||||||
@ -5012,247 +5012,4 @@ export type PostUsersNeedChangePasswordResponse = NeedChangePasswordOutput;
|
|||||||
|
|
||||||
export type PostUsersNeedChangePasswordError = RemoteServiceErrorResponse;
|
export type PostUsersNeedChangePasswordError = RemoteServiceErrorResponse;
|
||||||
|
|
||||||
export type IoTPageInput = {
|
|
||||||
/**
|
|
||||||
* 关键字
|
|
||||||
*/
|
|
||||||
filter?: null | string;
|
|
||||||
/**
|
|
||||||
* 当前页面.默认从1开始
|
|
||||||
*/
|
|
||||||
pageIndex?: number;
|
|
||||||
/**
|
|
||||||
* 每页多少条.每页显示多少记录
|
|
||||||
*/
|
|
||||||
pageSize?: number;
|
|
||||||
/**
|
|
||||||
* 跳过多少条
|
|
||||||
*/
|
|
||||||
readonly skipCount?: number;
|
|
||||||
/**
|
|
||||||
* 排序
|
|
||||||
* <example>
|
|
||||||
* name desc
|
|
||||||
* </example>
|
|
||||||
*/
|
|
||||||
sorting?: null | string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTErrorResponse = {
|
|
||||||
error?: RemoteServiceErrorInfo;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTDBTreeModelDeviceDataPageDataInput = {
|
|
||||||
body?: IoTPageInput;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTDBTreeModelDeviceDataDto = {
|
|
||||||
DeviceId?: null | string;
|
|
||||||
DeviceType?: null | string;
|
|
||||||
IoTDataType?: null | string;
|
|
||||||
ProjectId?: null | string;
|
|
||||||
ProjectName?: null | string;
|
|
||||||
SystemName?: null | string;
|
|
||||||
Timestamps?: null | string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTDBTreeModelDeviceDataPageListResultDto = {
|
|
||||||
items?: Array<IoTDBTreeModelDeviceDataDto> | null;
|
|
||||||
totalCount?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTDBTreeModelDeviceDataPageAllResponse =
|
|
||||||
IoTDBTreeModelDeviceDataPageListResultDto;
|
|
||||||
|
|
||||||
export type SelectResultListInput = {
|
|
||||||
query?: {
|
|
||||||
ThirdAttributeTypeName?: null | string;
|
|
||||||
TypeName?: null | string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SelectResultListDto = {
|
|
||||||
key?: null | string;
|
|
||||||
secondValue?: null | string;
|
|
||||||
thirdValue?: null | string;
|
|
||||||
value?: null | string;
|
|
||||||
};
|
|
||||||
export type SelectResultListAllResponse = {
|
|
||||||
items?: Array<SelectResultListDto> | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETLogInfoDto = {
|
|
||||||
deviceId: string;
|
|
||||||
devicePath: string;
|
|
||||||
deviceType: string;
|
|
||||||
focusAddress: string;
|
|
||||||
/** 数据类型 */
|
|
||||||
ioTDataType?: string;
|
|
||||||
isEncrypted: boolean;
|
|
||||||
messageType: string;
|
|
||||||
meterAddress: string;
|
|
||||||
plaintextMessage: string;
|
|
||||||
platformDeviceId: string;
|
|
||||||
productId: string;
|
|
||||||
projectId: string;
|
|
||||||
protocol: string;
|
|
||||||
rawMessage: string;
|
|
||||||
receivedPayload: string;
|
|
||||||
receivedTime: Date;
|
|
||||||
systemName: string;
|
|
||||||
timestamps: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTDBOneNETLogInfoPageListInput = {
|
|
||||||
body?: IoTPageInput;
|
|
||||||
};
|
|
||||||
export type IoTDBOneNETLogInfoPageListResult = {
|
|
||||||
items?: Array<OneNETLogInfoDto> | null;
|
|
||||||
totalCount?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CTWingLogInfoDto = {
|
|
||||||
/** 设备ID */
|
|
||||||
deviceId?: string;
|
|
||||||
/** 设备路径 */
|
|
||||||
devicePath?: string;
|
|
||||||
/** 设备类型 */
|
|
||||||
deviceType?: string;
|
|
||||||
/** 集中器地址 */
|
|
||||||
focusAddress?: string;
|
|
||||||
/** IMEI */
|
|
||||||
imei?: string;
|
|
||||||
/** IMSI */
|
|
||||||
imsi?: string;
|
|
||||||
/** 数据类型 */
|
|
||||||
ioTDataType?: string;
|
|
||||||
/** 消息类型 */
|
|
||||||
messageType?: string;
|
|
||||||
/** 表计地址 */
|
|
||||||
meterAddress?: string;
|
|
||||||
/** 平台设备ID */
|
|
||||||
platformDeviceId?: string;
|
|
||||||
/** 平台租户ID */
|
|
||||||
platformTenantId?: string;
|
|
||||||
/** 产品ID */
|
|
||||||
productId?: string;
|
|
||||||
/** 项目ID */
|
|
||||||
projectId?: string;
|
|
||||||
/** 协议 */
|
|
||||||
protocol?: string;
|
|
||||||
/** 原始消息 */
|
|
||||||
rawMessage?: string;
|
|
||||||
/** 接收载荷 */
|
|
||||||
receivedPayload?: string;
|
|
||||||
/** 接收时间 */
|
|
||||||
receivedTime?: Date;
|
|
||||||
/** 服务ID */
|
|
||||||
serviceId?: string;
|
|
||||||
/** 系统名称 */
|
|
||||||
systemName?: string;
|
|
||||||
/** 时间戳 */
|
|
||||||
timestamps?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type IoTDBCTWingLogInfoDtoPageListInput = {
|
|
||||||
body?: IoTPageInput;
|
|
||||||
};
|
|
||||||
export type IoTDBCTWingLogInfoDtoPageListResult = {
|
|
||||||
items?: Array<CTWingLogInfoDto> | null;
|
|
||||||
totalCount?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETAccountDto = {
|
|
||||||
accesskey: string;
|
|
||||||
accountName: string;
|
|
||||||
oneNETAccountId?: string;
|
|
||||||
phoneNumber: string;
|
|
||||||
productCount: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETAccountPageListInput = {
|
|
||||||
body?: IoTPageInput;
|
|
||||||
};
|
|
||||||
export type OneNETAccountPageListResult = {
|
|
||||||
items?: Array<OneNETAccountDto> | null;
|
|
||||||
totalCount?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNetAccountInsertInput = {
|
|
||||||
body?: OneNETAccountDto;
|
|
||||||
};
|
|
||||||
export type OneNetAccountInsertResponse = {
|
|
||||||
body?: OneNETAccountDto;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNetAccountModifyInput = {
|
|
||||||
body?: OneNETAccountDto;
|
|
||||||
};
|
|
||||||
export type OneNetAccountModifyResponse = {
|
|
||||||
body?: OneNETAccountDto;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNetAccountDeleteInput = {
|
|
||||||
body?: IdInput;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETAccountDeleteResponse = {
|
|
||||||
body?: OneNETAccountDto;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETProductDto = {
|
|
||||||
ioTPlatformProductId: string;
|
|
||||||
isEncrypted?: string;
|
|
||||||
oneNETAccountId: string;
|
|
||||||
productAccesskey: string;
|
|
||||||
productName: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETProductPageListInput = {
|
|
||||||
body?: IoTPageInput;
|
|
||||||
};
|
|
||||||
export type OneNETProductPageListResult = {
|
|
||||||
items?: Array<OneNETProductDto> | null;
|
|
||||||
totalCount?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OneNETProductCreateInput = {
|
|
||||||
body?: OneNETProductDto;
|
|
||||||
};
|
|
||||||
export type OneNETProductCreateResponse = {
|
|
||||||
body?: OneNETProductDto;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeviceInfoDto = {
|
|
||||||
dynamicPassword?: boolean;
|
|
||||||
haveValve?: boolean;
|
|
||||||
id?: string;
|
|
||||||
meterAddress: number;
|
|
||||||
meterName: string;
|
|
||||||
meterType?: number;
|
|
||||||
password?: number | string;
|
|
||||||
selfDevelop?: boolean;
|
|
||||||
singleRate?: number | string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeviceInfoPageListInput = {
|
|
||||||
body?: IoTPageInput;
|
|
||||||
};
|
|
||||||
export type DeviceInfoPageListResult = {
|
|
||||||
items?: Array<DeviceInfoDto> | null;
|
|
||||||
totalCount?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeviceArchivesDown = {
|
|
||||||
focusAddress: number | string;
|
|
||||||
meterAddress: number | string;
|
|
||||||
meterType: number | string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PostDeviceCreateData = {
|
|
||||||
body?: DeviceInfoDto;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postDeviceUpdateData = {
|
|
||||||
body?: DeviceInfoDto;
|
|
||||||
};
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import {
|
|||||||
postDeviceInfoDelete,
|
postDeviceInfoDelete,
|
||||||
postDeviceInfoPage,
|
postDeviceInfoPage,
|
||||||
postDeviceInfoUpdate,
|
postDeviceInfoUpdate,
|
||||||
} from '#/api-client';
|
} from '#/api-client/IoTClient';
|
||||||
import { TableAction } from '#/components/table-action';
|
import { TableAction } from '#/components/table-action';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import { useRoute } from 'vue-router';
|
|||||||
import { Page } from '@vben/common-ui';
|
import { Page } from '@vben/common-ui';
|
||||||
|
|
||||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import { postCTWingLogInfoPage, postMetersPage } from '#/api-client';
|
import { postMetersPage } from '#/api-client';
|
||||||
|
import { postCTWingLogInfoPage } from '#/api-client/IoTClient';
|
||||||
|
|
||||||
import DeviceSelect from '../deviceData/DeviceSelect.vue';
|
import DeviceSelect from '../deviceData/DeviceSelect.vue';
|
||||||
import { querySchema, tableSchema } from './schema';
|
import { querySchema, tableSchema } from './schema';
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import { useRoute } from 'vue-router';
|
|||||||
import { Page } from '@vben/common-ui';
|
import { Page } from '@vben/common-ui';
|
||||||
|
|
||||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import { postMetersPage, postTreeModelDeviceDataInfoPage } from '#/api-client';
|
import { postMetersPage } from '#/api-client';
|
||||||
|
import { postTreeModelDeviceDataInfoPage } from '#/api-client/IoTClient';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
import { generateDynamicColumns } from './dynamicColumns';
|
import { generateDynamicColumns } from './dynamicColumns';
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import { useRoute } from 'vue-router';
|
|||||||
import { Page } from '@vben/common-ui';
|
import { Page } from '@vben/common-ui';
|
||||||
|
|
||||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import { postMetersPage, postOneNETLogInfoPage } from '#/api-client';
|
import { postMetersPage } from '#/api-client';
|
||||||
|
import { postOneNETLogInfoPage } from '#/api-client/IoTClient';
|
||||||
|
|
||||||
import DeviceSelect from '../deviceData/DeviceSelect.vue';
|
import DeviceSelect from '../deviceData/DeviceSelect.vue';
|
||||||
import { querySchema, tableSchema } from './schema';
|
import { querySchema, tableSchema } from './schema';
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import { Page } from '@vben/common-ui';
|
|||||||
import { Tag } from 'ant-design-vue';
|
import { Tag } from 'ant-design-vue';
|
||||||
|
|
||||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import { postTableModelPacketInfoPage } from '#/api-client';
|
import { postTableModelPacketInfoPage } from '#/api-client/IoTClient';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
import { querySchema, tableSchema } from './schema';
|
import { querySchema, tableSchema } from './schema';
|
||||||
|
|||||||
@ -16,7 +16,7 @@ import {
|
|||||||
postOneNETAccountInfoPage,
|
postOneNETAccountInfoPage,
|
||||||
postOneNETAccountInsert,
|
postOneNETAccountInsert,
|
||||||
postOneNETAccountModify,
|
postOneNETAccountModify,
|
||||||
} from '#/api-client';
|
} from '#/api-client/IoTClient';
|
||||||
import { TableAction } from '#/components/table-action';
|
import { TableAction } from '#/components/table-action';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user