Documentation
¶
Index ¶
- func HealthRouter(router *gin.Engine)
- func NewDonationRouter(app *gin.Engine)
- func NewGuestRouter(app *gin.Engine)
- func NewInvitationRouter(app *gin.Engine)
- type CreateDonationRequest
- type CreateGuestRequest
- type CreateInvitationRequest
- type DonationRouter
- type GuestRouter
- type InvitationRouter
- type UpdateInvitationRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthRouter ¶
HealthRouter router for the health check endpoint
func NewDonationRouter ¶ added in v1.1.0
NewDonationRouter creates a new instance of the donation router
func NewGuestRouter ¶
NewGuestRouter creates a new instance of the guest router
func NewInvitationRouter ¶
NewInvitationRouter creates a new instance of the invitation router
Types ¶
type CreateDonationRequest ¶ added in v1.1.0
type CreateDonationRequest struct { FirstName string `json:"first_name" binding:"required"` LastName string `json:"last_name" binding:"required"` Message string `json:"message" binding:"required"` Amount string `json:"amount" binding:"required"` }
CreateDonationRequest structure of the create request for donation
type CreateGuestRequest ¶
type CreateGuestRequest struct { FirstName string `json:"first_name" binding:"required"` LastName string `json:"last_name" binding:"required"` }
CreateGuestRequest structure of the create request for guests
type CreateInvitationRequest ¶
type CreateInvitationRequest struct { Name string `json:"name" binding:"required"` Message string `json:"message" binding:"required"` Phone string `json:"phone" binding:"required"` Email string `json:"email" binding:"required"` GuestCount int `json:"guest_count" binding:"required"` }
CreateInvitationRequest structure of the create request for invitations
type DonationRouter ¶ added in v1.1.0
type DonationRouter struct {
// contains filtered or unexported fields
}
DonationRouter router for donation CRUD operations
type GuestRouter ¶
type GuestRouter struct {
// contains filtered or unexported fields
}
GuestRouter router for guest CRUD operations
type InvitationRouter ¶
type InvitationRouter struct {
// contains filtered or unexported fields
}
InvitationRouter router for invitation CRUD operations
type UpdateInvitationRequest ¶ added in v1.2.0
type UpdateInvitationRequest struct {
Instruction string `json:"instruction" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.