menu

package
v0.0.0-...-074ff86 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(parentId int, name, url, icon, description string) error

func Remove

func Remove(id int) error

func Sort

func Sort(id, sort int) error

func Updata

func Updata(id int, parentId int, name, url, icon, description string) error

Types

type Model

type Model struct {
	models.Model
	ParentId    int    `json:"parent_id"`
	Name        string `json:"name"`
	Url         string `json:"url"`
	Icon        string `json:"icon"`
	Description string `json:"description"`
	Sort        int    `json:"sort"`
}

func All

func All() ([]*Model, error)

func GetById

func GetById(id int) (model *Model, err error)

func GetLists

func GetLists(ids []int) ([]*Model, error)

Jump to

Keyboard shortcuts

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