views

package
v0.0.0-...-21824ef Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMethodNotAllowed = errors.New("error: Method is not allowed")
	ErrInvalidToken     = errors.New("error: Invalid Authorization token")
	ErrUserExists       = errors.New("error: User already exists")
)

Functions

func Wrap

func Wrap(err error, w http.ResponseWriter)

Types

type CouponParticipantComposite

type CouponParticipantComposite struct {
	CouponID uint   `json:"coupon_id"`
	RegNo    string `json:"reg_no"`
	EventID  uint   `json:"event_id"`
	Email    string `json:"email"`
}

type ErrView

type ErrView struct {
	Message string `json:"message"`
	Status  int    `json:"status"`
}

type Guest

type Guest struct {
	Name           string `json:"name"`
	Email          string `json:"email" gorm:"primary_key;"`
	PhoneNumber    string `json:"phone_number"`
	Gender         string `json:"gender"`
	Stake          string `json:"stake"`
	LocationOfStay string `json:"location_of_stay"`
	EventId        uint   `json:"event_id"`
}

func (*Guest) Transform

func (g *Guest) Transform() *entities.Guest

type Participant

type Participant struct {
	Name        string `json:"name"`
	RegNo       string `json:"reg_no"`
	Email       string `json:"email"`
	PhoneNumber string `json:"phone_number"`
	Gender      string `json:"gender"`
	EventId     uint   `json:"event_id"`
}

func (Participant) Transform

func (p Participant) Transform() *entities.Participant

type SegmentParticipantComposite

type SegmentParticipantComposite struct {
	Day     uint   `json:"day"`
	RegNo   string `json:"reg_no"`
	EventID uint   `json:"event_id"`
	Email   string `json:"email"`
}

Jump to

Keyboard shortcuts

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