Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClubEvent ¶
func ClubEvent(clubParams types.RouteParams)
Types ¶
type ClubEventController ¶
type ClubEventController struct {
// contains filtered or unexported fields
}
func NewClubEventController ¶
func NewClubEventController(clubEventService ClubEventServiceInterface) *ClubEventController
func (*ClubEventController) GetClubEvents ¶
func (cl *ClubEventController) GetClubEvents(c *fiber.Ctx) error
GetClubEvents godoc
@Summary Retrieve all events for a club @Description Retrieves all events associated with a club @ID get-events-by-club @Tags club-event @Produce json @Param clubID path string true "Club ID" @Param limit query int false "Limit" @Param page query int false "Page" @Success 200 {object} []models.Event @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /clubs/{clubID}/events/ [get]
type ClubEventService ¶
type ClubEventService struct {
types.ServiceParams
}
func (*ClubEventService) GetClubEvents ¶
func (c *ClubEventService) GetClubEvents(clubID string, pageInfo fiberpaginate.PageInfo) ([]models.Event, error)
type ClubEventServiceInterface ¶
type ClubEventServiceInterface interface {
GetClubEvents(clubID string, pageInfo fiberpaginate.PageInfo) ([]models.Event, error)
}
func NewClubEventService ¶
func NewClubEventService(params types.ServiceParams) ClubEventServiceInterface
Click to show internal directories.
Click to hide internal directories.