view_models

package
v0.0.0-...-96ff6bb Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginModel

type LoginModel struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (LoginModel) Valid

func (m LoginModel) Valid() error

type ProductAddModel

type ProductAddModel struct {
	Name        string `json:"name"`
	ImageOpen   string `json:"image_open"`
	ImageClosed string `json:"image_closed"`
	Description string `json:"description"`

	Story       string `json:"story"`
	AllergyInfo string `json:"allergy_info"`

	DietaryCertifications string `json:"dietary_certifications"`

	SourcingValues []int `json:"sourcing_values"`
	Ingredients    []int `json:"ingredients"`
}

type ProductModel

type ProductModel struct {
	ProductId   string `json:"product_id"`
	Name        string `json:"name"`
	ImageOpen   string `json:"image_open"`
	ImageClosed string `json:"image_closed"`
	Description string `json:"description"`

	Story       string `json:"story"`
	AllergyInfo string `json:"allergy_info"`

	DietaryCertifications string `json:"dietary_certifications"`

	SourcingValues []string `json:"sourcing_values"`
	Ingredients    []string `json:"ingredients"`
}

type ProductUpdateModel

type ProductUpdateModel struct {
	ProductId   string `json:"product_id"`
	Name        string `json:"name"`
	ImageOpen   string `json:"image_open"`
	ImageClosed string `json:"image_closed"`
	Description string `json:"description"`

	Story       string `json:"story"`
	AllergyInfo string `json:"allergy_info"`

	DietaryCertifications string `json:"dietary_certifications"`

	SourcingValues []int `json:"sourcing_values"`
	Ingredients    []int `json:"ingredients"`
}

Jump to

Keyboard shortcuts

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