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
Click to show internal directories.
Click to hide internal directories.