controller

package
v0.0.0-...-3c1c7b0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController interface {
	Login(context *gin.Context)
	Register(context *gin.Context)
}

func NewAuthController

func NewAuthController(authService service.AuthService, jwtService service.JWTService) AuthController

type BookController

type BookController interface {
	All(context *gin.Context)
	Get(context *gin.Context)
	Insert(context *gin.Context)
	Update(context *gin.Context)
	Delete(context *gin.Context)
}

func NewBookController

func NewBookController(bookService service.BookService, jwtService service.JWTService) BookController

type ReceiptController

type ReceiptController interface {
	All(context *gin.Context)
	Show(context *gin.Context)
	Insert(context *gin.Context)
	Update(context *gin.Context)
	Delete(context *gin.Context)
	RefreshCache(keys ...string)
}

func NewReceiptController

func NewReceiptController(receiptService service.ReceiptService, receiptCache cache.ReceiptCache) ReceiptController

type UserController

type UserController interface {
	Update(context *gin.Context)
	Get(context *gin.Context)
}

func NewUserController

func NewUserController(userService service.UserService, jwtService service.JWTService) UserController

Jump to

Keyboard shortcuts

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