mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 03:19:36 +08:00
规则
This commit is contained in:
@@ -8,10 +8,10 @@ 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:varchar(50);comment:Json数据" json:"ruleDataJson"`
|
||||
RuleBase64 string `gorm:"ruleBase64;type:varchar(50);comment:Base64缩略图" json:"ruleBase64"` //缩略图 base64
|
||||
RuleRemark string `gorm:"ruleRemark;type:varchar(50);comment:说明" json:"ruleRemark"`
|
||||
Status string `gorm:"status;type:varchar(50);comment:状态" json:"status"`
|
||||
RuleDataJson string `gorm:"ruleDataJson;type:text;comment:Json数据" json:"ruleDataJson"`
|
||||
RuleBase64 string `gorm:"ruleBase64;type:text;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
|
||||
}
|
||||
|
||||
@@ -2,6 +2,17 @@ package entity
|
||||
|
||||
import "github.com/XM-GO/PandaKit/model"
|
||||
|
||||
type VisualScreenGroup struct {
|
||||
Id string `gorm:"id;primary_key;type:varchar(64);comment:Id" json:"id"`
|
||||
Name string `gorm:"name;type:varchar(64);comment:分组名称" json:"name"`
|
||||
Pid string `gorm:"pid;type:varchar(64);comment:父Id" json:"pid"`
|
||||
Level int64 `gorm:"level;type:int;comment:等级" json:"level"`
|
||||
}
|
||||
|
||||
func (VisualScreenGroup) TableName() string {
|
||||
return "visual_screen_group"
|
||||
}
|
||||
|
||||
type VisualScreen struct {
|
||||
UserId string `gorm:"userId;type:varchar(64);comment:用户Id" json:"userId"`
|
||||
ScreenId string `gorm:"primary_key;" json:"screenId"`
|
||||
|
||||
Reference in New Issue
Block a user