【优化功能】 优化 tdengine 操作数据库相关代码

This commit is contained in:
安浩浩
2024-11-09 23:44:05 +08:00
parent 9b30d5d355
commit 89fb71e857
35 changed files with 416 additions and 953 deletions

View File

@@ -0,0 +1,38 @@
package cn.iocoder.yudao.module.iot.enums;
/**
* Iot 常量
*
* @author 芋道源码
*/
public interface IotConstants {
/**
* 获取设备表名
* <p>
* 格式为 device_{productKey}_{deviceName}
*/
String DEVICE_TABLE_NAME_FORMAT = "device_%s_%s";
/**
* 获取产品属性超级表名 - 网关子设备
* <p>
* 格式为 gateway_sub_{productKey}
*/
String GATEWAY_SUB_STABLE_NAME_FORMAT = "gateway_sub_%s";
/**
* 获取产品属性超级表名 - 网关
* <p>
* 格式为 gateway_{productKey}
*/
String GATEWAY_STABLE_NAME_FORMAT = "gateway_%s";
/**
* 获取产品属性超级表名 - 设备
* <p>
* 格式为 device_{productKey}
*/
String DEVICE_STABLE_NAME_FORMAT = "device_%s";
}