members

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 GetClubMembership

func GetClubMembership(db *gorm.DB, userID uuid.UUID) ([]models.Club, 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

type UserMemberService

type UserMemberService struct {
	types.ServiceParams
}

func (*UserMemberService) GetMembership

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

type UserMemberServiceInterface

type UserMemberServiceInterface interface {
	GetMembership(userID string) ([]models.Club, 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