Documentation ¶
Index ¶
- type SpendingController
- type SpendingControllerImpl
- func (controller *SpendingControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *SpendingControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *SpendingControllerImpl) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *SpendingControllerImpl) FindByUserId(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *SpendingControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- type UserController
- type UserControllerImpl
- func (controller *UserControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *UserControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *UserControllerImpl) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *UserControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
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)
Click to show internal directories.
Click to hide internal directories.