member

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 GetClubMembership

func GetClubMembership(db *gorm.DB, userID uuid.UUID) ([]models.Club, *errors.Error)

func UserMember

func UserMember(userParams types.RouteParams)

Types

type UserMemberController

type UserMemberController struct {
	// contains filtered or unexported fields
}

func NewUserMemberController

func NewUserMemberController(clubMemberService UserMemberServiceInterface) *UserMemberController

func (*UserMemberController) GetMembership

func (um *UserMemberController) GetMembership(c *fiber.Ctx) error

GetMembership godoc

@Summary Retrieve all clubs a user is a member of @Description Retrieves all clubs a user is a member of @ID get-membership @Tags user-member @Produce json @Param userID path string true "User ID" @Success 200 {object} []models.Club @Failure 400 {object} errors.Error @Failure 401 {object} errors.Error @Failure 404 {object} errors.Error @Failure 500 {object} errors.Error @Router /users/{userID}/member/ [get]

type UserMemberService

type UserMemberService struct {
	types.ServiceParams
}

func (*UserMemberService) GetMembership

func (u *UserMemberService) GetMembership(userID string) ([]models.Club, *errors.Error)

type UserMemberServiceInterface

type UserMemberServiceInterface interface {
	GetMembership(userID string) ([]models.Club, *errors.Error)
}

func NewUserMemberService

func NewUserMemberService(serviceParams types.ServiceParams) UserMemberServiceInterface

Jump to

Keyboard shortcuts

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