优化接口封装

This commit is contained in:
ChenYi 2025-07-28 11:54:55 +08:00
parent b4b7eac73c
commit ecebc32a99
12 changed files with 573 additions and 536 deletions

View File

@ -0,0 +1,3 @@
// IoTClient 主入口文件
export * from './services';
export * from './types';

View 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',
});
};

View 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;
};

View File

@ -2,3 +2,4 @@
export * from './schemas.gen';
export * from './services.gen';
export * from './types.gen';
export * from './IoTClient';

View File

@ -3,9 +3,6 @@
import type { Options, OptionsLegacyParser } from '@hey-api/client-axios';
import type {
DeviceArchivesDown,
DeviceInfoPageListInput,
DeviceInfoPageListResult,
GetApiAbpApiDefinitionData,
GetApiAbpApiDefinitionError,
GetApiAbpApiDefinitionResponse,
@ -17,25 +14,6 @@ import type {
GetApiAbpApplicationLocalizationResponse,
GetApiAppAbpProBasicApplicationConfigurationError,
GetApiAppAbpProBasicApplicationConfigurationResponse,
IoTDBCTWingLogInfoDtoPageListInput,
IoTDBCTWingLogInfoDtoPageListResult,
IoTDBOneNETLogInfoPageListInput,
IoTDBOneNETLogInfoPageListResult,
IoTDBTreeModelDeviceDataPageAllResponse,
IoTDBTreeModelDeviceDataPageDataInput,
IoTErrorResponse,
OneNetAccountDeleteInput,
OneNETAccountDeleteResponse,
OneNetAccountInsertInput,
OneNetAccountInsertResponse,
OneNetAccountModifyInput,
OneNetAccountModifyResponse,
OneNETAccountPageListInput,
OneNETAccountPageListResult,
OneNETProductCreateInput,
OneNETProductCreateResponse,
OneNETProductPageListInput,
OneNETProductPageListResult,
PostApiAppAccountLogin2FaData,
PostApiAppAccountLogin2FaError,
PostApiAppAccountLogin2FaResponse,
@ -452,8 +430,6 @@ import type {
PostUsersUpdateData,
PostUsersUpdateError,
PostUsersUpdateResponse,
SelectResultListAllResponse,
SelectResultListInput,
} from './types.gen';
import {
@ -2969,266 +2945,3 @@ export const postUsersNeedChangePassword = <
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',
});
};

View File

@ -5012,247 +5012,4 @@ export type PostUsersNeedChangePasswordResponse = NeedChangePasswordOutput;
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;
};

View File

@ -17,7 +17,7 @@ import {
postDeviceInfoDelete,
postDeviceInfoPage,
postDeviceInfoUpdate,
} from '#/api-client';
} from '#/api-client/IoTClient';
import { TableAction } from '#/components/table-action';
import { $t } from '#/locales';

View File

@ -8,7 +8,8 @@ import { useRoute } from 'vue-router';
import { Page } from '@vben/common-ui';
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 { querySchema, tableSchema } from './schema';

View File

@ -8,7 +8,8 @@ import { useRoute } from 'vue-router';
import { Page } from '@vben/common-ui';
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 { generateDynamicColumns } from './dynamicColumns';

View File

@ -8,7 +8,8 @@ import { useRoute } from 'vue-router';
import { Page } from '@vben/common-ui';
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 { querySchema, tableSchema } from './schema';

View File

@ -9,7 +9,7 @@ import { Page } from '@vben/common-ui';
import { Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { postTableModelPacketInfoPage } from '#/api-client';
import { postTableModelPacketInfoPage } from '#/api-client/IoTClient';
import { $t } from '#/locales';
import { querySchema, tableSchema } from './schema';

View File

@ -16,7 +16,7 @@ import {
postOneNETAccountInfoPage,
postOneNETAccountInsert,
postOneNETAccountModify,
} from '#/api-client';
} from '#/api-client/IoTClient';
import { TableAction } from '#/components/table-action';
import { $t } from '#/locales';