mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-24 19:38:35 +08:00
数据集
This commit is contained in:
@@ -5,18 +5,22 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
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: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"` //创建者
|
||||
type VisualRuleChainBase 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"`
|
||||
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"` //创建者
|
||||
model.BaseModel
|
||||
}
|
||||
|
||||
type VisualRuleChain struct {
|
||||
VisualRuleChainBase
|
||||
RuleDataJson string `gorm:"ruleDataJson;type:longtext;comment:Json数据" json:"ruleDataJson"`
|
||||
}
|
||||
|
||||
func (VisualRuleChain) TableName() string {
|
||||
return "visual_rule_chain"
|
||||
}
|
||||
|
||||
@@ -22,19 +22,23 @@ func (VisualScreenGroup) TableName() string {
|
||||
return "visual_screen_group"
|
||||
}
|
||||
|
||||
type VisualScreen struct {
|
||||
UserId int64 `gorm:"userId;type:int;comment:用户Id" json:"userId"`
|
||||
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: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"` //创建者
|
||||
type VisualScreenBase struct {
|
||||
UserId int64 `gorm:"userId;type:int;comment:用户Id" json:"userId"`
|
||||
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"`
|
||||
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"` //创建者
|
||||
model.BaseModel
|
||||
}
|
||||
|
||||
type VisualScreen struct {
|
||||
VisualScreenBase
|
||||
ScreenDataJson string `gorm:"screenDataJson;type:longtext;comment:Json数据" json:"screenDataJson"` //pg 使用类型 text
|
||||
}
|
||||
|
||||
func (VisualScreen) TableName() string {
|
||||
return "visual_screen"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user