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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClubMember

func ClubMember(clubParams types.RouteParams)

func CreateClubMember

func CreateClubMember(db *gorm.DB, clubID uuid.UUID, userID uuid.UUID) error

func DeleteClubMember

func DeleteClubMember(db *gorm.DB, clubID uuid.UUID, userID uuid.UUID) error

func GetClubMembers

func GetClubMembers(db *gorm.DB, clubID uuid.UUID, pageInfo fiberpaginate.PageInfo) ([]models.User, error)

Types

type ClubMemberController

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

func NewClubMemberController

func NewClubMemberController(clubMemberService ClubMemberServiceInterface) *ClubMemberController

func (*ClubMemberController) CreateClubMember

func (cm *ClubMemberController) CreateClubMember(c *fiber.Ctx) error

func (*ClubMemberController) DeleteClubMember

func (cm *ClubMemberController) DeleteClubMember(c *fiber.Ctx) error

func (*ClubMemberController) GetClubMembers

func (cm *ClubMemberController) GetClubMembers(c *fiber.Ctx) error

type ClubMemberService

type ClubMemberService struct {
	types.ServiceParams
}

func (*ClubMemberService) CreateClubMember

func (cms *ClubMemberService) CreateClubMember(clubID string, userID string) error

func (*ClubMemberService) DeleteClubMember

func (cms *ClubMemberService) DeleteClubMember(clubID string, userID string) error

func (*ClubMemberService) GetClubMembers

func (cms *ClubMemberService) GetClubMembers(clubID string, pageInfo fiberpaginate.PageInfo) ([]models.User, error)

type ClubMemberServiceInterface

type ClubMemberServiceInterface interface {
	CreateClubMember(clubID string, userID string) error
	GetClubMembers(clubID string, pageInfo fiberpaginate.PageInfo) ([]models.User, error)
	DeleteClubMember(clubID string, userID string) error
}

func NewClubMemberService

func NewClubMemberService(params types.ServiceParams) ClubMemberServiceInterface

Jump to

Keyboard shortcuts

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