controller

package
v0.0.0-...-d5ed70e Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleController

type ArticleController struct {
	ArticleService service.ArticleService
}

func NewArticleController

func NewArticleController(articleService service.ArticleService) *ArticleController

func (*ArticleController) Create

func (controller *ArticleController) Create(w http.ResponseWriter, r *http.Request)

func (*ArticleController) Delete

func (controller *ArticleController) Delete(w http.ResponseWriter, r *http.Request)

func (*ArticleController) FindAll

func (controller *ArticleController) FindAll(w http.ResponseWriter, r *http.Request)

func (*ArticleController) FindByCategory

func (controller *ArticleController) FindByCategory(w http.ResponseWriter, r *http.Request)

func (*ArticleController) FindById

func (controller *ArticleController) FindById(w http.ResponseWriter, r *http.Request)

func (*ArticleController) Update

func (controller *ArticleController) Update(w http.ResponseWriter, r *http.Request)

type UserController

type UserController struct {
	UserService service.UserService
}

func NewUserController

func NewUserController(userService service.UserService) *UserController

func (*UserController) Create

func (controller *UserController) Create(w http.ResponseWriter, r *http.Request)

func (*UserController) Delete

func (controller *UserController) Delete(w http.ResponseWriter, r *http.Request)

func (*UserController) FindById

func (controller *UserController) FindById(w http.ResponseWriter, r *http.Request)

func (*UserController) Update

func (controller *UserController) Update(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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