gormimpl

package
v0.0.0-...-307aa89 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormMenu

type GormMenu struct {
	gorm.Model
	ID       string
	MenuJson string
}

type GormMenus

type GormMenus struct {
	DB *gorm.DB
}

func NewGormMenus

func NewGormMenus(db *gorm.DB) *GormMenus

func (*GormMenus) DeleteMenu

func (g *GormMenus) DeleteMenu(id string) error

func (*GormMenus) MenuIDs

func (g *GormMenus) MenuIDs() ([]string, error)

func (*GormMenus) Models

func (gm *GormMenus) Models() []interface{}

func (*GormMenus) ReadMenu

func (g *GormMenus) ReadMenu(id string) (*Menu, error)

func (*GormMenus) WriteMenu

func (g *GormMenus) WriteMenu(id string, menu *Menu) error

Jump to

Keyboard shortcuts

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