Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClubFollower ¶
func ClubFollower(clubParams types.RouteParams)
Types ¶
type ClubFollowerController ¶
type ClubFollowerController struct {
// contains filtered or unexported fields
}
func NewClubFollowerController ¶
func NewClubFollowerController(clubFollowerService ClubFollowerServiceInterface) *ClubFollowerController
func (*ClubFollowerController) GetClubFollowers ¶
func (cf *ClubFollowerController) GetClubFollowers(c *fiber.Ctx) error
GetClubFollowers godoc
@Summary Retrieve all followers for a club @Description Retrieves all followers associated with a club @ID get-followers-by-club @Tags club-follower @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.User @Failure 400 {object} errors.Error @Failure 404 {object} errors.Error @Failure 500 {object} errors.Error @Router /clubs/{clubID}/followers/ [get]
type ClubFollowerService ¶
type ClubFollowerService struct {
types.ServiceParams
}
func (*ClubFollowerService) GetClubFollowers ¶
type ClubFollowerServiceInterface ¶
type ClubFollowerServiceInterface interface {
GetClubFollowers(clubID string, limit string, page string) ([]models.User, *errors.Error)
}
func NewClubFollowerService ¶
func NewClubFollowerService(params types.ServiceParams) ClubFollowerServiceInterface
Click to show internal directories.
Click to hide internal directories.