Documentation
¶
Index ¶
- type Menu
- func (a *Menu) Create(c echo.Context, respMenu *schemago.RespMenu) error
- func (a *Menu) Delete(c echo.Context, menuid string) error
- func (a *Menu) Get(c echo.Context, menuid string) (*schemago.RespMenu, error)
- func (a *Menu) Query(c echo.Context, reqmenu *schemago.ReqMenu) ([]schemago.RespMenu, int, error)
- func (a *Menu) Update(c echo.Context, respMenu *schemago.RespMenu) error
- type Securer
- type Service
- type UDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
Menu represents menu application service
func Initialize ¶
Initialize initalizes menu application service with defaults
type Service ¶
type Service interface { Query(echo.Context, *schemago.ReqMenu) ([]schemago.RespMenu, int, error) Get(echo.Context, string) (*schemago.RespMenu, error) Create(echo.Context, *schemago.RespMenu) error Update(echo.Context, *schemago.RespMenu) error Delete(echo.Context, string) error }
Service represents menu application interface
type UDB ¶
type UDB interface { Query(*gorm.DB, *schemago.ReqMenu) ([]schemago.RespMenu, int, error) Get(*gorm.DB, string) (*schemago.RespMenu, error) Create(*gorm.DB, *schemago.RespMenu) error Update(*gorm.DB, *schemago.RespMenu) error Delete(*gorm.DB, string) error }
UDB represents menu repository interface
Click to show internal directories.
Click to hide internal directories.