follower

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClubFollower

func ClubFollower(clubParams types.RouteParams)

func GetClubFollowers

func GetClubFollowers(db *gorm.DB, clubID uuid.UUID, limit int, page int) ([]models.User, *errors.Error)

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

func (cf *ClubFollowerService) GetClubFollowers(clubID string, limit string, page string) ([]models.User, *errors.Error)

type ClubFollowerServiceInterface

type ClubFollowerServiceInterface interface {
	GetClubFollowers(clubID string, limit string, page string) ([]models.User, *errors.Error)
}

func NewClubFollowerService

func NewClubFollowerService(params types.ServiceParams) ClubFollowerServiceInterface

Jump to

Keyboard shortcuts

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