menu

package
v0.0.0-...-eb626f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelDB

func GetModelDB(ctx context.Context, defDB *gorm.DB) *gorm.DB

func NewRepository

func NewRepository(db *gorm.DB) menu.Repository

Types

type Model

type Model struct {
	ID         string     `gorm:"column:id;primary_key;size:36;"`
	Name       string     `gorm:"column:name;size:50;index;default:'';not null;"`
	Sequence   int        `gorm:"column:sequence;index;default:0;not null;"`
	Icon       *string    `gorm:"column:icon;size:255;"`
	Router     *string    `gorm:"column:router;size:255;"`
	ParentID   *string    `gorm:"column:parent_id;size:36;index;"`
	ParentPath *string    `gorm:"column:parent_path;size:518;index;"`
	ShowStatus int        `gorm:"column:show_status;index;default:0;not null;"`
	Status     int        `gorm:"column:status;index;default:0;not null;"`
	Memo       *string    `gorm:"column:memo;size:1024;"`
	Creator    string     `gorm:"column:creator;size:36;"`
	CreatedAt  time.Time  `gorm:"column:created_at;index;"`
	UpdatedAt  time.Time  `gorm:"column:updated_at;index;"`
	DeletedAt  *time.Time `gorm:"column:deleted_at;index;"`
}

func (Model) TableName

func (Model) TableName() string

func (Model) ToDomain

func (a Model) ToDomain() *menu.Menu

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL