routes

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthRouter

func HealthRouter(router *gin.Engine)

HealthRouter router for the health check endpoint

func NewDonationRouter added in v1.1.0

func NewDonationRouter(app *gin.Engine)

NewDonationRouter creates a new instance of the donation router

func NewGuestRouter

func NewGuestRouter(app *gin.Engine)

NewGuestRouter creates a new instance of the guest router

func NewInvitationRouter

func NewInvitationRouter(app *gin.Engine)

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"`
}

Jump to

Keyboard shortcuts

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