规则链

This commit is contained in:
XM-GO
2023-04-18 16:29:26 +08:00
parent db5a45590a
commit 5dfa341083
46 changed files with 980 additions and 381 deletions

View File

@@ -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"
}