Documentation ¶
Index ¶
- func ClubMember(clubParams types.RouteParams)
- func CreateClubMember(db *gorm.DB, clubID uuid.UUID, userID uuid.UUID) error
- func DeleteClubMember(db *gorm.DB, clubID uuid.UUID, userID uuid.UUID) error
- func GetClubMembers(db *gorm.DB, clubID uuid.UUID, pageInfo fiberpaginate.PageInfo) ([]models.User, error)
- type ClubMemberController
- type ClubMemberService
- type ClubMemberServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClubMember ¶
func ClubMember(clubParams types.RouteParams)
func CreateClubMember ¶
func DeleteClubMember ¶
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
Click to show internal directories.
Click to hide internal directories.