mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-24 03:18:35 +08:00
iot init
This commit is contained in:
30
pkg/tdengine/TDengineModel.go
Normal file
30
pkg/tdengine/TDengineModel.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package tdengine
|
||||
|
||||
import "time"
|
||||
|
||||
type TDEngineTablesList struct {
|
||||
TableName string `json:"tableName" description:"表名"`
|
||||
DbName string `json:"dbName" description:"数据库名"`
|
||||
StableName string `json:"stableName" description:"超级表名"`
|
||||
CreateTime *time.Time `json:"createTime" description:"创建时间"`
|
||||
}
|
||||
|
||||
type TDEngineTableInfo struct {
|
||||
Field string `json:"field" description:"字段名"`
|
||||
Type string `json:"type" description:"类型"`
|
||||
Length int `json:"length" description:"长度"`
|
||||
Note string `json:"note" description:"note"`
|
||||
}
|
||||
|
||||
type TableDataInfo struct {
|
||||
Filed []string `json:"filed" description:"字段"`
|
||||
Info []map[string]interface{} `json:"info" description:"数据"`
|
||||
}
|
||||
|
||||
// 日志 TDengine
|
||||
type TdLog struct {
|
||||
Ts string `json:"ts" dc:"时间"`
|
||||
Device string `json:"device" dc:"设备标识"`
|
||||
Type string `json:"type" dc:"日志类型"`
|
||||
Content string `json:"content" dc:"日志内容"`
|
||||
}
|
||||
Reference in New Issue
Block a user