This commit is contained in:
XM-GO
2023-04-11 17:17:38 +08:00
parent 95ee8aa80b
commit 078781a240
10 changed files with 250 additions and 14 deletions

View File

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