controller

package
v0.0.0-...-0cee42a Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 9 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(ctx *gin.Context)
	Register(ctx *gin.Context)
	Update(ctx *gin.Context)
	Get(ctx *gin.Context)
}

AuthController interface for login, register, read, and update user

func NewAuth

func NewAuth(authService service.AuthService, jwtService service.JWTService, userService service.UserService) AuthController

NewAuth is like constructor of the model

type BookController

type BookController interface {
	All(ctx *gin.Context)
	FindByID(ctx *gin.Context)
	Insert(ctx *gin.Context)
	Update(ctx *gin.Context)
	Delete(ctx *gin.Context)
}

BookController interface for login, register, read, and update user

func NewBookController

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

NewBookController is like constructor of the model

Jump to

Keyboard shortcuts

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