events

package
v0.0.0-...-f828163 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClubEvent

func ClubEvent(clubParams types.RouteParams)

func GetClubEvents

func GetClubEvents(db *gorm.DB, clubID uuid.UUID, pageInfo fiberpaginate.PageInfo) ([]models.Event, error)

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

Jump to

Keyboard shortcuts

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