diff --git a/apps/web-antd/src/api-client/IoTClient/index.ts b/apps/web-antd/src/api-client/IoTClient/index.ts new file mode 100644 index 0000000..fff8c71 --- /dev/null +++ b/apps/web-antd/src/api-client/IoTClient/index.ts @@ -0,0 +1,3 @@ +// IoTClient 主入口文件 +export * from './services'; +export * from './types'; diff --git a/apps/web-antd/src/api-client/IoTClient/services.ts b/apps/web-antd/src/api-client/IoTClient/services.ts new file mode 100644 index 0000000..c56a4cd --- /dev/null +++ b/apps/web-antd/src/api-client/IoTClient/services.ts @@ -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 = ( + options?: Options, +) => { + return (options?.client ?? client).post< + DeviceInfoPageListResult, + PostRolesAllError, + ThrowOnError + >({ + ...options, + url: '/DeviceInfo/Page', + }); +}; +/** + * 创建设备 + */ +export const postDeviceInfoCreate = ( + options?: Options, +) => { + return (options?.client ?? client).post< + PostUsersCreateResponse, + PostUsersCreateError, + ThrowOnError + >({ + ...options, + url: '/Aggregation/Device/Create', + }); +}; +/** + * 编辑设备 + */ +export const postDeviceInfoUpdate = ( + options?: Options, +) => { + return (options?.client ?? client).post< + PostUsersUpdateResponse, + PostUsersUpdateError, + ThrowOnError + >({ + ...options, + url: '/Aggregation/Device/Update', + }); +}; +/** + * 删除设备 + */ +export const postDeviceInfoDelete = ( + options?: Options, +) => { + return (options?.client ?? client).post< + PostUsersDeleteResponse, + PostUsersDeleteError, + ThrowOnError + >({ + ...options, + url: '/Aggregation/Device/Delete', + }); +}; + +/** + * 档案下发 + */ +export const postDeviceInfoArchivesDown = < + ThrowOnError extends boolean = false, +>( + options?: Options, +) => { + return (options?.client ?? client).post< + PostUsersDeleteResponse, + PostUsersDeleteError, + ThrowOnError + >({ + ...options, + url: '/DeviceInfo/ArchivesDown', + }); +}; + +/** + * 获取遥测日志分页 + */ +export const postTableModelPacketInfoPage = < + ThrowOnError extends boolean = false, +>( + options?: Options, +) => { + return (options?.client ?? client).post< + PostRolesAllResponse, + PostRolesAllError, + ThrowOnError + >({ + ...options, + url: '/TableModel/PacketInfoPage', + }); +}; + +/** + * 获取IoTDB设备树模型数据分页 + */ +export const postTreeModelDeviceDataInfoPage = < + ThrowOnError extends boolean = false, +>( + options?: Options, +) => { + return (options?.client ?? client).post< + IoTDBTreeModelDeviceDataPageAllResponse, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + ...formDataBodySerializer, + url: '/TreeModel/DeviceDataInfoPage', + }); +}; + +/** + * 获取后端通用下拉框列表集合 + */ +export const getSelectResultList = ( + options?: Options, +) => { + return (options?.client ?? client).get< + SelectResultListAllResponse, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + url: '/Common/GetSelectList', + }); +}; + +/** + * OneNET 设备日志 + */ +export const postOneNETLogInfoPage = ( + options?: Options, +) => { + return (options?.client ?? client).post< + IoTDBOneNETLogInfoPageListResult, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + ...formDataBodySerializer, + url: '/TableModel/OneNETLogInfo', + }); +}; + +/** + * CTWing 设备日志 + */ +export const postCTWingLogInfoPage = ( + options?: Options, +) => { + return (options?.client ?? client).post< + IoTDBCTWingLogInfoDtoPageListResult, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + ...formDataBodySerializer, + url: '/TableModel/CTWingLogInfo', + }); +}; + +/** + * OneNET 账号管理 + */ +export const postOneNETAccountInfoPage = ( + options?: Options, +) => { + return (options?.client ?? client).post< + OneNETAccountPageListResult, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + url: '/OneNETAccount/ListAsync', + }); +}; + +/** + * OneNET 创建账号 + */ +export const postOneNETAccountInsert = ( + options?: Options, +) => { + return (options?.client ?? client).post< + OneNetAccountInsertResponse, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + url: '/OneNETAccount/InsertAsync', + }); +}; + +/** + * OneNET 修改账号 + */ +export const postOneNETAccountModify = ( + options?: Options, +) => { + return (options?.client ?? client).post< + OneNetAccountModifyResponse, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + url: '/OneNETAccount/ModifyAsync', + }); +}; + +/** + * OneNET 删除账号 + */ +export const postOneNETAccountDelete = ( + options?: Options, +) => { + return (options?.client ?? client).post< + OneNETAccountDeleteResponse, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + url: '/OneNETAccount/DeleteAsync', + }); +}; + +/** + * OneNET 产品管理 + */ +export const postOneNETProductInfoPage = ( + options?: Options, +) => { + return (options?.client ?? client).post< + OneNETProductPageListResult, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + ...formDataBodySerializer, + url: '/OneNETProduct/ListAsync', + }); +}; + +/** + * OneNET 创建产品 + */ +export const postOneNETProductCreate = ( + options?: Options, +) => { + return (options?.client ?? client).post< + OneNETProductCreateResponse, + IoTErrorResponse, + ThrowOnError + >({ + ...options, + url: '/OneNETProduct/InsertAsync', + }); +}; diff --git a/apps/web-antd/src/api-client/IoTClient/types.ts b/apps/web-antd/src/api-client/IoTClient/types.ts new file mode 100644 index 0000000..855af5a --- /dev/null +++ b/apps/web-antd/src/api-client/IoTClient/types.ts @@ -0,0 +1,259 @@ +export type IoTPageInput = { + /** + * 关键字 + */ + filter?: null | string; + /** + * 当前页面.默认从1开始 + */ + pageIndex?: number; + /** + * 每页多少条.每页显示多少记录 + */ + pageSize?: number; + /** + * 跳过多少条 + */ + readonly skipCount?: number; + /** + * 排序 + * + * name desc + * + */ + sorting?: null | string; +}; + +export type IoTIdInput = { + id?: string; +}; + +export type IoTRemoteServiceValidationErrorInfo = { + members?: Array | null; + message?: null | string; +}; + +export type IoTErrorResponse = { + code?: null | string; + data?: null | { + [key: string]: unknown; + }; + details?: null | string; + message?: null | string; + validationErrors?: Array | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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; +}; diff --git a/apps/web-antd/src/api-client/index.ts b/apps/web-antd/src/api-client/index.ts index 002afc3..906527b 100644 --- a/apps/web-antd/src/api-client/index.ts +++ b/apps/web-antd/src/api-client/index.ts @@ -2,3 +2,4 @@ export * from './schemas.gen'; export * from './services.gen'; export * from './types.gen'; +export * from './IoTClient'; diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 624a259..8a012c9 100644 --- a/apps/web-antd/src/api-client/services.gen.ts +++ b/apps/web-antd/src/api-client/services.gen.ts @@ -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 = ( - options?: Options, -) => { - return (options?.client ?? client).post< - DeviceInfoPageListResult, - PostRolesAllError, - ThrowOnError - >({ - ...options, - url: '/DeviceInfo/Page', - }); -}; -/** - * 创建设备 - */ -export const postDeviceInfoCreate = ( - options?: Options, -) => { - return (options?.client ?? client).post< - PostUsersCreateResponse, - PostUsersCreateError, - ThrowOnError - >({ - ...options, - url: '/Aggregation/Device/Create', - }); -}; -/** - * 编辑设备 - */ -export const postDeviceInfoUpdate = ( - options?: Options, -) => { - return (options?.client ?? client).post< - PostUsersUpdateResponse, - PostUsersUpdateError, - ThrowOnError - >({ - ...options, - url: '/Aggregation/Device/Update', - }); -}; -/** - * 删除设备 - */ -export const postDeviceInfoDelete = ( - options?: Options, -) => { - return (options?.client ?? client).post< - PostUsersDeleteResponse, - PostUsersDeleteError, - ThrowOnError - >({ - ...options, - url: '/Aggregation/Device/Delete', - }); -}; - -/** - * 档案下发 - */ -export const postDeviceInfoArchivesDown = < - ThrowOnError extends boolean = false, ->( - options?: Options, -) => { - return (options?.client ?? client).post< - PostUsersDeleteResponse, - PostUsersDeleteError, - ThrowOnError - >({ - ...options, - url: '/DeviceInfo/ArchivesDown', - }); -}; - -/** - * 获取遥测日志分页 - */ -export const postTableModelPacketInfoPage = < - ThrowOnError extends boolean = false, ->( - options?: Options, -) => { - return (options?.client ?? client).post< - PostRolesAllResponse, - PostRolesAllError, - ThrowOnError - >({ - ...options, - url: '/TableModel/PacketInfoPage', - }); -}; - -/** - * 获取IoTDB设备树模型数据分页 - */ -export const postTreeModelDeviceDataInfoPage = < - ThrowOnError extends boolean = false, ->( - options?: Options, -) => { - return (options?.client ?? client).post< - IoTDBTreeModelDeviceDataPageAllResponse, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - ...formDataBodySerializer, - url: '/TreeModel/DeviceDataInfoPage', - }); -}; - -/** - * 获取后端通用下拉框列表集合 - */ -export const getSelectResultList = ( - options?: Options, -) => { - return (options?.client ?? client).get< - SelectResultListAllResponse, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - url: '/Common/GetSelectList', - }); -}; - -/** - * OneNET 设备日志 - */ -export const postOneNETLogInfoPage = ( - options?: Options, -) => { - return (options?.client ?? client).post< - IoTDBOneNETLogInfoPageListResult, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - ...formDataBodySerializer, - url: '/TableModel/OneNETLogInfo', - }); -}; - -/** - * CTWing 设备日志 - */ -export const postCTWingLogInfoPage = ( - options?: Options, -) => { - return (options?.client ?? client).post< - IoTDBCTWingLogInfoDtoPageListResult, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - ...formDataBodySerializer, - url: '/TableModel/CTWingLogInfo', - }); -}; - -/** - * OneNET 账号管理 - */ -export const postOneNETAccountInfoPage = ( - options?: Options, -) => { - return (options?.client ?? client).post< - OneNETAccountPageListResult, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - url: '/OneNETAccount/ListAsync', - }); -}; - -/** - * OneNET 创建账号 - */ -export const postOneNETAccountInsert = ( - options?: Options, -) => { - return (options?.client ?? client).post< - OneNetAccountInsertResponse, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - url: '/OneNETAccount/InsertAsync', - }); -}; - -/** - * OneNET 修改账号 - */ -export const postOneNETAccountModify = ( - options?: Options, -) => { - return (options?.client ?? client).post< - OneNetAccountModifyResponse, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - url: '/OneNETAccount/ModifyAsync', - }); -}; - -/** - * OneNET 删除账号 - */ -export const postOneNETAccountDelete = ( - options?: Options, -) => { - return (options?.client ?? client).post< - OneNETAccountDeleteResponse, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - url: '/OneNETAccount/DeleteAsync', - }); -}; - -/** - * OneNET 产品管理 - */ -export const postOneNETProductInfoPage = ( - options?: Options, -) => { - return (options?.client ?? client).post< - OneNETProductPageListResult, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - ...formDataBodySerializer, - url: '/OneNETProduct/ListAsync', - }); -}; - -/** - * OneNET 创建产品 - */ -export const postOneNETProductCreate = ( - options?: Options, -) => { - return (options?.client ?? client).post< - OneNETProductCreateResponse, - IoTErrorResponse, - ThrowOnError - >({ - ...options, - url: '/OneNETProduct/InsertAsync', - }); -}; diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index 448e109..72dba80 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -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; - /** - * 排序 - * - * name desc - * - */ - 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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; -}; diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue index 64e4b99..fad2aeb 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue @@ -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'; diff --git a/apps/web-antd/src/views/iotdbdatamanagement/ctwingLog/index.vue b/apps/web-antd/src/views/iotdbdatamanagement/ctwingLog/index.vue index a23ca4a..ecaed58 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/ctwingLog/index.vue +++ b/apps/web-antd/src/views/iotdbdatamanagement/ctwingLog/index.vue @@ -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'; diff --git a/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue b/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue index d3c90ed..e1d638a 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue +++ b/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue @@ -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'; diff --git a/apps/web-antd/src/views/iotdbdatamanagement/onenetLog/index.vue b/apps/web-antd/src/views/iotdbdatamanagement/onenetLog/index.vue index 04dd9a5..4344d64 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/onenetLog/index.vue +++ b/apps/web-antd/src/views/iotdbdatamanagement/onenetLog/index.vue @@ -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'; diff --git a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue index f910ffc..3cfc916 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue +++ b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue @@ -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'; diff --git a/apps/web-antd/src/views/onenetmanagement/account/index.vue b/apps/web-antd/src/views/onenetmanagement/account/index.vue index 477f499..68c31df 100644 --- a/apps/web-antd/src/views/onenetmanagement/account/index.vue +++ b/apps/web-antd/src/views/onenetmanagement/account/index.vue @@ -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';