package
0.0.0-20240829181107-687e1e4344f8
Repository: https://github.com/wesleyfebarretos/ticket-sale.git
Documentation: pkg.go.dev

# Functions

CreateEvent godoc @Tags Admin Event @Summary Create a event @Description Create a event @Produce json @Param Event body CreateRequestDto true "New Event" @Success 201 {object} CreateResponseDto @Failure 500 {object} exception.HttpException @Failure 400 {object} exception.HttpException @Failure 403 {object} middleware.RolePermissionError @Failure 401 {object} middleware.AuthenticationError @Router /admin/events [post].
GetAllEvents godoc @Tags Admin Event @Summary Get all events @Description Get all events @Produce json @Success 200 {object} []GetAllResponseDto @Failure 500 {object} exception.HttpException @Failure 400 {object} exception.HttpException @Failure 403 {object} middleware.RolePermissionError @Failure 401 {object} middleware.AuthenticationError @Router /admin/events [get].
GetOneById godoc @Tags Admin Event @Summary Get One By Id @Description Get One By Id @Produce json @Param id path int true "Event ID" @Success 200 {object} GetOneByIdResponseDto @Failure 500 {object} exception.HttpException @Failure 404 {object} exception.HttpException @Failure 400 {object} exception.HttpException @Failure 403 {object} middleware.RolePermissionError @Failure 401 {object} middleware.AuthenticationError @Router /admin/events/{id} [get].
SoftDeleteEvent godoc @Tags Admin Event @Summary Soft Delete a event @Description Soft Delete a event @Produce json @Param id path int true "Event ID" @Success 200 {object} bool @Failure 500 {object} exception.HttpException @Failure 400 {object} exception.HttpException @Failure 403 {object} middleware.RolePermissionError @Failure 401 {object} middleware.AuthenticationError @Router /admin/events/{id} [delete]k.
UpdateEvent godoc @Tags Admin Event @Summary Update a event @Description Update a event @Produce json @Param id path int true "Event ID" @Param Event body UpdateRequestDto true "Update Event" @Success 200 {object} bool @Failure 500 {object} exception.HttpException @Failure 404 {object} exception.HttpException @Failure 400 {object} exception.HttpException @Failure 403 {object} middleware.RolePermissionError @Failure 401 {object} middleware.AuthenticationError @Router /admin/events/{id} [put].

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author