controller

package
v0.0.0-...-cbdd806 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginController

type LoginController interface {
	Login(ctx *gin.Context) string
	Register(ctx *gin.Context) error
	GetAllUsers(ctx *gin.Context) []user.User
}

func NewLoginController

func NewLoginController(loginService service.LoginService, jwtService service.JWTService) LoginController

type MovieController

type MovieController interface {
	GetAll() []operation.Movie
	Add(ctx *gin.Context) error
	Update(ctx *gin.Context) error
	Delete(ctx *gin.Context) error
	GetOne(ctx *gin.Context) operation.Movie
}

Jump to

Keyboard shortcuts

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