Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(db *gorm.DB) menuaction.Repository
Types ¶
type Model ¶
type Model struct { ID string `gorm:"column:id;primary_key;size:36;"` MenuID string `gorm:"column:menu_id;size:36;index;default:'';not null;"` Code string `gorm:"column:code;size:100;default:'';not null;"` Name string `gorm:"column:name;size:100;default:'';not null;"` }
func (Model) ToDomain ¶
func (a Model) ToDomain() *menuaction.MenuAction
Click to show internal directories.
Click to hide internal directories.