models

package
v0.0.0-...-8fab053 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dress

type Dress struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Price       float64   `json:"price"`
	Currency    string    `json:"currency"`
	Description string    `json:"description"`
	Sku         string    `json:"sku"`
	Stock       int       `json:"stock"`
	Owner       *Seller   `json:"owner"`
	CreateAt    time.Time `json:"createAt"`
	Sizes       []string  `json:"sizes"`
	Colors      []string  `json:"colors"`
}

func (Dress) IsProduct

func (Dress) IsProduct()

func (Dress) IsSearchResult

func (Dress) IsSearchResult()

type Food

type Food struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Price       float64   `json:"price"`
	Currency    string    `json:"currency"`
	Description string    `json:"description"`
	Sku         string    `json:"sku"`
	Stock       int       `json:"stock"`
	Owner       *Seller   `json:"owner"`
	CreateAt    time.Time `json:"createAt"`
	ExpireAt    time.Time `json:"expireAt"`
}

func (Food) IsProduct

func (Food) IsProduct()

func (Food) IsSearchResult

func (Food) IsSearchResult()

type NewDress

type NewDress struct {
	Title       string   `json:"title"`
	Price       float64  `json:"price"`
	Currency    string   `json:"currency"`
	Description string   `json:"description"`
	Sku         string   `json:"sku"`
	Stock       int      `json:"stock"`
	Sizes       []string `json:"sizes"`
	Colors      []string `json:"colors"`
}

type NewFood

type NewFood struct {
	Title       string    `json:"title"`
	Price       float64   `json:"price"`
	Currency    string    `json:"currency"`
	Description string    `json:"description"`
	Sku         string    `json:"sku"`
	Stock       int       `json:"stock"`
	ExpireAt    time.Time `json:"expireAt"`
}

type NewSeller

type NewSeller struct {
	Name        string  `json:"name"`
	Slug        *string `json:"slug"`
	Description string  `json:"description"`
}

type NewSoftware

type NewSoftware struct {
	Title       string  `json:"title"`
	Price       float64 `json:"price"`
	Currency    string  `json:"currency"`
	Description string  `json:"description"`
	Sku         string  `json:"sku"`
	Stock       int     `json:"stock"`
	License     string  `json:"license"`
	Code        string  `json:"code"`
}

type Product

type Product interface {
	IsProduct()
}

type SearchResult

type SearchResult interface {
	IsSearchResult()
}

type Seller

type Seller struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Slug        string `json:"slug"`
	Description string `json:"description"`
}

type Software

type Software struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Price       float64   `json:"price"`
	Currency    string    `json:"currency"`
	Description string    `json:"description"`
	Sku         string    `json:"sku"`
	Stock       int       `json:"stock"`
	Owner       *Seller   `json:"owner"`
	CreateAt    time.Time `json:"createAt"`
	License     string    `json:"license"`
	Code        string    `json:"code"`
}

func (Software) IsProduct

func (Software) IsProduct()

func (Software) IsSearchResult

func (Software) IsSearchResult()

Jump to

Keyboard shortcuts

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