shop

package
v0.0.0-...-f2087ef Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	web.Model

	Name        string
	Attachments []auth.Attachment
	Detail      string

	Products []Product
}

Catalog catalog

type Engine

type Engine struct {
}

Engine engine model

func (*Engine) Map

func (p *Engine) Map(*inject.Graph) error

Map map objects

func (*Engine) Mount

func (p *Engine) Mount(*gin.Engine)

Mount mount web point

func (*Engine) Shell

func (p *Engine) Shell() []cli.Command

Shell command options

func (*Engine) Worker

func (p *Engine) Worker()

Worker do background job

type Factory

type Factory struct {
	web.Model

	Name        string
	Attachments []auth.Attachment
	Detail      string

	Products []Product
}

Factory factory

type Option

type Option struct {
	Name  string
	Price float64

	Product Product
}

Option option for product

type Product

type Product struct {
	web.Model

	Sku         string
	Name        string
	Attachments []auth.Attachment
	Summary     string
	Detail      string

	RegularPrice float64
	SpecialPrice float64

	Catalog Catalog
	Factory Factory
	Options []Option
}

Product product

type Shipment

type Shipment struct {
	Name  string
	Price float64
}

Shipment shipment

type Vendor

type Vendor struct {
	Name    string
	Address string
	Details string
}

Vendor vendor

Jump to

Keyboard shortcuts

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