controller

package
v0.0.0-...-d6a3c1e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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 IAuthController

type IAuthController interface {
	Login(ctx *gin.Context)
	Register(ctx *gin.Context)
}

interface yapısı sadece method imzalarını barındırır

func AuthController

func AuthController(authService service.IAuthService, jwtService service.IJWTService) IAuthController

constructor olarak düşünülebilir, struct dışarıya açık olmadığı için bu yapı ile set ediliyor. dependency injection

type IBlogController

type IBlogController interface {
	All(context *gin.Context)
	FindByID(context *gin.Context)
	Insert(context *gin.Context)
	Update(context *gin.Context)
	Delete(context *gin.Context)
}

func BlogController

func BlogController(blogServ service.IBlogService, jwtServ service.IJWTService) IBlogController

type IUserController

type IUserController interface {
	Update(context *gin.Context)
	Profile(context *gin.Context)
}

func UserController

func UserController(userService service.IUserService, jwtService service.IJWTService) IUserController

Jump to

Keyboard shortcuts

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