修复 导航栏重复初始化的问题

This commit is contained in:
2026-04-17 04:54:54 +08:00
parent ec508e6a32
commit 6d6b1c00c4
6 changed files with 150 additions and 14 deletions

View File

@@ -7,6 +7,8 @@ import "time"
type PortalNavigation struct {
ID uint `json:"id" gorm:"primaryKey;comment:导航ID自增主键"`
Name string `json:"name" gorm:"size:64;not null;comment:导航名称"`
Type string `json:"type" gorm:"size:16;not null;default:link;comment:导航类型link=链接group=分组"`
ParentID uint `json:"parent_id" gorm:"default:0;not null;comment:所属分组ID0表示顶级导航"`
Path string `json:"path" gorm:"size:255;not null;comment:导航地址或路由路径"`
Sort int `json:"sort" gorm:"default:0;not null;comment:排序值越小越靠前0最优先"`
IsHome bool `json:"is_home" gorm:"default:false;comment:是否为门户首页"`