controller

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 SpendingController

type SpendingController interface {
	Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	FindByUserId(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
}

func NewSpendingController

func NewSpendingController(spendingService service.SpendingService) SpendingController

type SpendingControllerImpl

type SpendingControllerImpl struct {
	SpendingService service.SpendingService
}

func (*SpendingControllerImpl) Create

func (controller *SpendingControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*SpendingControllerImpl) Delete

func (controller *SpendingControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*SpendingControllerImpl) FindById

func (controller *SpendingControllerImpl) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*SpendingControllerImpl) FindByUserId

func (controller *SpendingControllerImpl) FindByUserId(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*SpendingControllerImpl) Update

func (controller *SpendingControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

type UserController

type UserController interface {
	Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
}

func NewUserController

func NewUserController(userService service.UserService) UserController

type UserControllerImpl

type UserControllerImpl struct {
	UserService service.UserService
}

func (*UserControllerImpl) Create

func (controller *UserControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*UserControllerImpl) Delete

func (controller *UserControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*UserControllerImpl) FindById

func (controller *UserControllerImpl) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*UserControllerImpl) Update

func (controller *UserControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

Jump to

Keyboard shortcuts

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