mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 20:11:27 +08:00
websocket
This commit is contained in:
@@ -8,8 +8,8 @@ type VisualRuleChain struct {
|
||||
UserId string `gorm:"userId;type:varchar(64);comment:用户Id" json:"userId"`
|
||||
RuleId string `gorm:"primary_key;" json:"ruleId"`
|
||||
RuleName string `gorm:"ruleName;type:varchar(50);comment:名称" json:"ruleName"`
|
||||
RuleDataJson string `gorm:"ruleDataJson;type:text;comment:Json数据" json:"ruleDataJson"`
|
||||
RuleBase64 string `gorm:"ruleBase64;type:text;comment:Base64缩略图" json:"ruleBase64"` //缩略图 base64
|
||||
RuleDataJson string `gorm:"ruleDataJson;type:longtext;comment:Json数据" json:"ruleDataJson"`
|
||||
RuleBase64 string `gorm:"ruleBase64;type:longtext;comment:Base64缩略图" json:"ruleBase64"` //缩略图 base64
|
||||
RuleRemark string `gorm:"ruleRemark;type:varchar(256);comment:说明" json:"ruleRemark"`
|
||||
Status string `gorm:"status;type:varchar(1);comment:状态" json:"status"`
|
||||
Creator string `json:"creator"` //创建者
|
||||
|
||||
@@ -27,8 +27,8 @@ type VisualScreen struct {
|
||||
ScreenId string `gorm:"primary_key;" json:"screenId"`
|
||||
GroupId int64 `gorm:"screenGroup;type:int;comment:分组Id" json:"groupId"`
|
||||
ScreenName string `gorm:"screenName;type:varchar(50);comment:名称" json:"screenName"`
|
||||
ScreenDataJson string `gorm:"screenDataJson;type:text;comment:Json数据" json:"screenDataJson"`
|
||||
ScreenBase64 string `gorm:"screenBase64;type:text;comment:Base64缩略图" json:"screenBase64"` //缩略图 base64
|
||||
ScreenDataJson string `gorm:"screenDataJson;type:longtext;comment:Json数据" json:"screenDataJson"` //pg 使用类型 text
|
||||
ScreenBase64 string `gorm:"screenBase64;type:longtext;comment:Base64缩略图" json:"screenBase64"` //缩略图 base64
|
||||
ScreenRemark string `gorm:"screenRemark;type:varchar(255);comment:说明" json:"screenRemark"`
|
||||
Status string `gorm:"status;type:varchar(1);comment:状态" json:"status"`
|
||||
Creator string `json:"creator"` //创建者
|
||||
@@ -38,3 +38,12 @@ type VisualScreen struct {
|
||||
func (VisualScreen) TableName() string {
|
||||
return "visual_screen"
|
||||
}
|
||||
|
||||
type VisualScreenImage struct {
|
||||
FileName string `gorm:"fileName;type:varchar(255);comment:文件名" json:"fileName"`
|
||||
FilePath string `gorm:"filePath;type:varchar(255);comment:文件路径" json:"filePath"`
|
||||
}
|
||||
|
||||
func (VisualScreenImage) TableName() string {
|
||||
return "visual_screen_image"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user