rent

package
v0.0.0-...-d4bccd0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RentHandler

type RentHandler struct {
	// contains filtered or unexported fields
}

func NewRentHandler

func NewRentHandler(rentUs _rentUseCase.RentUseCaseInterface) *RentHandler

func (*RentHandler) AddBookToRentHandler

func (c *RentHandler) AddBookToRentHandler(ctx echo.Context) error

AddBookToRentHandler @Summary Add Book To Rent @Description Add Book To Rent by user @Tags rent @ID add-rent @Accept json @Produce json @Param data body helper.RentRequest true "data" @Success 200 {object} helper.RentsResponse "ok" @Failure 401 {object} helper.ResponseFailedBody "Authorization Error" @Failure 500 {object} helper.ResponseFailedBody "Server Error" @Security ApiKeyAuth @Router /rent [post]

func (*RentHandler) GetBookRentHandler

func (r *RentHandler) GetBookRentHandler(ctx echo.Context) error

GetBookRentHandler @Summary Get All Rent On Book @Description Get All Rent On Book @Tags rent @ID get-book-rents @Accept json @Produce json @Param id path string true "id" @Success 200 {object} helper.RentsResponse "ok" @Failure 401 {object} helper.ResponseFailedBody "Authorization Error" @Failure 500 {object} helper.ResponseFailedBody "Server Error" @Router /book-rent/{id} [get]

func (*RentHandler) GetCurrentRentHandler

func (r *RentHandler) GetCurrentRentHandler(ctx echo.Context) error

GetCurrentRentHandler @Summary Get current rent @Description Get current rent made by user @Tags rent @ID get-current-rent @Accept json @Produce json @Success 200 {object} helper.RentsResponse "ok" @Failure 401 {object} helper.ResponseFailedBody "Authorization Error" @Failure 500 {object} helper.ResponseFailedBody "Server Error" @Security ApiKeyAuth @Router /rent [get]

func (*RentHandler) GetRentHandler

func (r *RentHandler) GetRentHandler(ctx echo.Context) error

GetRentHandler @Summary Get A Rent By Id @Description Get A Rent @Tags rent @ID get-rent @Accept json @Produce json @Param id path string true "id" @Success 200 {object} helper.RentResponse "ok" @Failure 401 {object} helper.ResponseFailedBody "Authorization Error" @Failure 500 {object} helper.ResponseFailedBody "Server Error" @Router /rent/{id} [get]

func (*RentHandler) GiveBackBookHandler

func (r *RentHandler) GiveBackBookHandler(ctx echo.Context) error

GiveBackBookHandler @Summary Give / Return back book @Description Give / Return back book @Tags rent @ID give-back-rent-book @Accept json @Produce json @Param data body helper.ReturnBookRequest true "data" @Success 200 {object} helper.ResponseSuccessWithoutDataBody "ok" @Failure 404 {object} helper.ResponseFailedBody "Authorization Error" @Failure 401 {object} helper.ResponseFailedBody "Authorization Error" @Failure 500 {object} helper.ResponseFailedBody "Server Error" @Security ApiKeyAuth @Router /return-rent [post]

Jump to

Keyboard shortcuts

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