menumodel

package
v0.0.0-...-48f0708 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMenu

func DeleteMenu() error

DeleteMenu ...

Types

type Menu struct {
	ID         primitive.ObjectID   `bson:"_id,omitempty" json:"id,omitempty"`
	Name       string               `bson:"name" json:"name"`
	Caption    string               `bson:"caption" json:"caption"`
	RoleCode   string               `bson:"rolecode" json:"rolecode"`
	RoleName   string               `bson:"rolename" json:"rolename"`
	Info       string               `bson:"info" json:"info"`
	CanAdd     bool                 `bson:"canAdd" json:"canAdd"`
	CanEdit    bool                 `bson:"canEdit" json:"canEdit"`
	CanView    bool                 `bson:"canView" json:"canView"`
	CanDelete  bool                 `bson:"canDelete" json:"canDelete"`
	EntryDate  string               `bson:"entryDate" json:"entryDate"`
	UpdateDate string               `bson:"updateDate" json:"updateDate"`
	UserID     []primitive.ObjectID `bson:"user_id" json:"user_id"`
}

Menu : Menu shown to a user

func FindMenus

func FindMenus() ([]Menu, error)

FindMenus ...

func (m *Menu) CreateMenu() error

CreateMenu ...

func (m *Menu) UpdateMenu() error

UpdateMenu ...

Jump to

Keyboard shortcuts

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