feat:完善网站活动报名信息
This commit is contained in:
31
app/common/model/sys_navigation.go
Normal file
31
app/common/model/sys_navigation.go
Normal file
@ -0,0 +1,31 @@
|
||||
package model
|
||||
|
||||
// SysNavigation 自定义导航栏数据模型
|
||||
type SysNavigation struct {
|
||||
Model
|
||||
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"parent_id"`
|
||||
Title string `gorm:"column:title;type:varchar(20);default:'';comment:区域名称" json:"title"`
|
||||
Link string `gorm:"column:link;type:varchar(255);default:'';comment:访问地址" json:"link"`
|
||||
Sort int `gorm:"column:sort;type:tinyint(3);default:0;comment:排序,从大到小" json:"-"`
|
||||
Status SysNavigationStatus `gorm:"column:status;type:tinyint(1);default:1;comment:状态" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
// SysNavigationStatus 显示状态
|
||||
type SysNavigationStatus int
|
||||
|
||||
const (
|
||||
// SysNavigationStatusForShow 显示
|
||||
SysNavigationStatusForShow SysNavigationStatus = iota + 1
|
||||
// SysNavigationStatusForHidden 隐藏
|
||||
SysNavigationStatusForHidden
|
||||
)
|
||||
|
||||
func (m *SysNavigation) TableName() string {
|
||||
return "sys_navigation"
|
||||
}
|
||||
|
||||
func NewSysNavigation() *SysNavigation {
|
||||
return &SysNavigation{}
|
||||
}
|
Reference in New Issue
Block a user