You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
576 B

package model
import (
"time"
)
// MenuGroup 菜单分组模型
type MenuGroup struct {
ID uint `gorm:"primarykey" json:"id"`
UpdatedAt time.Time `json:"updated_at"`
Name string `json:"name"` // 分组名称
Description string `json:"description"` // 分组描述
Sort int `gorm:"default:0" json:"sort"` // 排序
Status int `gorm:"default:1" json:"status"` // 状态:1-启用,0-禁用
}
// TableName 指定表名
func (MenuGroup) TableName() string {
return "menu_groups"
}