mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
规则链
This commit is contained in:
@@ -2,6 +2,7 @@ package entity
|
||||
|
||||
import (
|
||||
"github.com/XM-GO/PandaKit/model"
|
||||
"time"
|
||||
)
|
||||
|
||||
type VisualRuleChain struct {
|
||||
@@ -19,3 +20,16 @@ type VisualRuleChain struct {
|
||||
func (VisualRuleChain) TableName() string {
|
||||
return "visual_rule_chain"
|
||||
}
|
||||
|
||||
type VisualRuleChainMsgLog struct {
|
||||
MessageId string `json:"message_id"`
|
||||
MsgType string `json:"msg_type"`
|
||||
DeviceName string `json:"device_name"`
|
||||
Ts time.Time `json:"ts"`
|
||||
Content string `json:"content"`
|
||||
CreatedAt time.Time // 创建时间
|
||||
}
|
||||
|
||||
func (VisualRuleChainMsgLog) TableName() string {
|
||||
return "visual_rule_chain_msg_log"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user