commands

package
Version: v0.0.0-...-d12dea3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignupCustomerWithNewsletter

func SignupCustomerWithNewsletter(db *gorm.DB, reqData SignupCustomerWithNewsletterRequestData) error

func SignupCustomerWithWineComments

func SignupCustomerWithWineComments(db *gorm.DB, reqData SignupCustomerWithWineCommentsRequestData) error

Types

type SignupCustomerWithNewsletterRequestData

type SignupCustomerWithNewsletterRequestData struct {
	Name   string `json:"name,omitempty"`
	Email  string `json:"email"`
	RoleId string `json:"roleId"`
}

type SignupCustomerWithWineCommentsRequestData

type SignupCustomerWithWineCommentsRequestData struct {
	Name         string        `json:"name,omitempty"`
	Email        string        `json:"email"`
	RoleId       string        `json:"roleId"`
	WineComments []WineComment `json:"wineComments"`
}

type WineComment

type WineComment struct {
	WineId   string `json:"wineId"`
	WineYear int    `json:"wineYear"`
	Comment  string `json:"comment"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL