package system

import "sundynix-go/global"

type Menu struct {
	global.BaseModel
	ParentId   string  `gorm:"size:100;default:'0'" json:"parentId" form:"parentId"`
	Category   int     `json:"category" form:"category"`
	Name       string  `gorm:"size:20" json:"name" form:"name"`
	Title      string  `gorm:"size:20" json:"title" form:"title"`
	Code       string  `gorm:"size:50" json:"code" form:"code"`
	Path       string  `gorm:"size:100" json:"path" form:"path"`
	Permission string  `gorm:"size:20" json:"permission" form:"permission"`
	Locale     string  `gorm:"size:50" json:"locale" form:"locale"`
	Icon       string  `gorm:"size:20" json:"icon" form:"icon"`
	Sort       int     `json:"sort" form:"sort"`
	Children   []*Menu `json:"children" gorm:"-"`
}
