This commit is contained in:
xingyu4j
2025-10-10 21:44:08 +08:00
parent 00a25ed1d3
commit 691f9aa764
24 changed files with 689 additions and 732 deletions

View File

@@ -92,5 +92,3 @@ export function getSimpleAlertConfigList() {
'/iot/alert-config/simple-list',
);
}
export { AlertConfigApi };

View File

@@ -80,5 +80,3 @@ export function deleteAlertRecordList(ids: number[]) {
params: { ids: ids.join(',') },
});
}
export { AlertRecordApi };

View File

@@ -194,30 +194,3 @@ export function getDeviceMessagePairPage(params: PageParam) {
export function sendDeviceMessage(params: IotDeviceApi.DeviceMessageSendReq) {
return requestClient.post('/iot/device/message/send', params);
}
// Export aliases for compatibility
export const DeviceApi = {
getDevicePage,
getDevice,
createDevice,
updateDevice,
updateDeviceGroup,
deleteDevice,
deleteDeviceList,
exportDeviceExcel,
getDeviceCount,
getSimpleDeviceList,
getDeviceListByProductId,
importDeviceTemplate,
getLatestDeviceProperties,
getHistoryDevicePropertyList,
getDeviceAuthInfo,
getDeviceMessagePage,
getDeviceMessagePairPage,
sendDeviceMessage,
};
export type DeviceVO = IotDeviceApi.Device;
export type IotDeviceAuthInfoVO = IotDeviceApi.DeviceAuthInfo;
export type IotDevicePropertyDetailRespVO = IotDeviceApi.DevicePropertyDetail;
export type IotDevicePropertyRespVO = IotDeviceApi.DeviceProperty;

View File

@@ -96,5 +96,3 @@ export function pauseOtaTask(id: number) {
export function resumeOtaTask(id: number) {
return requestClient.put(`/iot/ota-task/resume?id=${id}`);
}
export { IoTOtaTaskApi };

View File

@@ -99,5 +99,3 @@ export function getOtaTaskRecordStatusStatistics(
{ params: { firmwareId, taskId } },
);
}
export { IoTOtaTaskRecordApi };

View File

@@ -97,18 +97,3 @@ export function getProductByKey(productKey: string) {
params: { productKey },
});
}
// Export aliases for compatibility
export const ProductApi = {
getProductPage,
getProduct,
createProduct,
updateProduct,
deleteProduct,
exportProduct,
updateProductStatus,
getSimpleProductList,
getProductByKey,
};
export type ProductVO = IotProductApi.Product;

View File

@@ -146,5 +146,3 @@ export function updateDataSinkStatus(id: number, status: number) {
status,
});
}
export { DataSinkApi };

View File

@@ -153,10 +153,3 @@ export function getSimpleRuleSceneList() {
'/iot/scene-rule/simple-list',
);
}
// 别名导出(兼容旧代码)
export {
deleteSceneRule as deleteRuleScene,
getSceneRulePage as getRuleScenePage,
updateSceneRuleStatus as updateRuleSceneStatus,
};

View File

@@ -67,18 +67,3 @@ export function getDeviceMessageSummary(statType: number) {
{ params: { statType } },
);
}
// 导出 API 对象(兼容旧代码)
export const StatisticsApi = {
getStatisticsSummary,
getDeviceMessageSummaryByDate,
getDeviceMessageSummary,
};
// 导出类型别名(兼容旧代码)
export type IotStatisticsSummaryRespVO = IotStatisticsApi.StatisticsSummary;
export type IotStatisticsDeviceMessageSummaryRespVO =
IotStatisticsApi.DeviceMessageSummary;
export type IotStatisticsDeviceMessageSummaryByDateRespVO =
IotStatisticsApi.DeviceMessageSummaryByDate;
export type IotStatisticsDeviceMessageReqVO = IotStatisticsApi.DeviceMessageReq;

View File

@@ -189,18 +189,3 @@ export function exportThingModelTSL(productId: number) {
params: { productId },
});
}
// Add a consolidated API object and getThingModelList alias
export const ThingModelApi = {
getThingModelPage,
getThingModel,
getThingModelList: getThingModelListByProductId, // alias for compatibility
getThingModelListByProductId,
getThingModelListByProductKey,
createThingModel,
updateThingModel,
deleteThingModel,
deleteThingModelList,
importThingModelTSL,
exportThingModelTSL,
};