menu

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder() *menuQueryBuilder

Types

type Menu struct {
	Id          int32     // 主键
	Pid         int32     // 父类ID
	Name        string    // 菜单名称
	Link        string    // 链接地址
	Icon        string    // 图标
	Level       int32     // 菜单类型 1:一级菜单 2:二级菜单
	Sort        int32     // 排序
	IsUsed      int32     // 是否启用 1:是 -1:否
	IsDeleted   int32     // 是否删除 1:是  -1:否
	CreatedAt   time.Time `gorm:"time"` // 创建时间
	CreatedUser string    // 创建人
	UpdatedAt   time.Time `gorm:"time"` // 更新时间
	UpdatedUser string    // 更新人
}

Menu 左侧菜单栏表

func NewModel

func NewModel() *Menu
func (t *Menu) Create(db *gorm.DB) (id int32, err error)

Jump to

Keyboard shortcuts

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