event

package
v0.0.0-...-702f6d9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: AGPL-3.0 Imports: 8 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, limit int, page int) ([]models.Event, *errors.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} errors.Error @Failure 404 {object} errors.Error @Failure 500 {object} errors.Error @Router /clubs/{clubID}/events/ [get]

type ClubEventService

type ClubEventService struct {
	types.ServiceParams
}

func (*ClubEventService) GetClubEvents

func (c *ClubEventService) GetClubEvents(clubID string, limit string, page string) ([]models.Event, *errors.Error)

type ClubEventServiceInterface

type ClubEventServiceInterface interface {
	GetClubEvents(clubID string, limit string, page string) ([]models.Event, *errors.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