【优化功能】 优化 tdengine 操作数据库相关代码
This commit is contained in:
@@ -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";
|
||||
|
||||
}
|
Reference in New Issue
Block a user