mssql

package
v0.0.0-...-9b07b7c Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu struct{}

Menu represents the client for Menu table

func NewMenu

func NewMenu() *Menu

NewMenu returns a new Menu database instance

func (u *Menu) Create(db *gorm.DB, respMenu *schemago.RespMenu) error

Create create

func (u *Menu) Delete(db *gorm.DB, menuid string) error

Delete delete Menu on database

func (u *Menu) Get(db *gorm.DB, menuid string) (*schemago.RespMenu, error)

Get get roleMenu on database

func (u *Menu) Query(db *gorm.DB, reqmenu *schemago.ReqMenu) ([]schemago.RespMenu, int, error)

Query query Menus on database

func (u *Menu) Update(db *gorm.DB, respMenu *schemago.RespMenu) error

Update update

Jump to

Keyboard shortcuts

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