mall

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ID        uint
	Name      string
	Phone     string
	Zip       string
	Line1     string
	Line2     string
	City      string
	State     string
	Country   string
	CreatedAt time.Time
	UpdatedAt time.Time
	User      *nut.User
}

Address address http://www.bitboost.com/ref/international-address-formats.html#Formats

type Journal

type Journal struct {
	ID        uint
	Action    string
	Quantity  int
	Variant   *Variant
	User      *nut.User
	CreatedAt time.Time
}

Journal journal

type Plugin

type Plugin struct {
	I18n   *web.I18n      `inject:""`
	Cache  *web.Cache     `inject:""`
	Jwt    *web.Jwt       `inject:""`
	Router *gin.Engine    `inject:""`
	DB     *gorm.DB       `inject:""`
	Render *render.Render `inject:""`
}

Plugin plugin

func (*Plugin) Init

func (p *Plugin) Init(*inject.Graph) error

Init init beans

func (*Plugin) Mount

func (p *Plugin) Mount() error

Mount register

func (*Plugin) Shell

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

Shell console commands

type Product

type Product struct {
	ID          uint
	Name        string
	Description string
	Type        string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Store       *Store
	Vendor      *Vendor
	Tags        []*Tag
	Variants    []*Variant
}

Product product

type Property

type Property struct {
	ID        uint
	Key       string
	Val       string
	Variant   *Variant
	CreatedAt time.Time
	UpdatedAt time.Time
}

Property property

type Store

type Store struct {
	ID          uint
	Name        string
	Description string
	Type        string
	Currency    string
	Metric      bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Owner       *nut.User
	Address     *Address
}

Store store

type Tag

type Tag struct {
	ID          uint
	Name        string
	Description string
	Type        string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Products    []*Product
}

Tag tag

type Variant

type Variant struct {
	ID          uint
	Sku         string
	Description string
	Type        string
	Price       float64
	Cost        float64
	Weight      float64
	Height      float64
	Width       float64
	Length      float64
	Stock       int64
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Product     *Product
}

Variant variant

type Vendor

type Vendor struct {
	ID          uint
	Name        string
	Description string
	Type        string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Store       *Store
}

Vendor vendor

Jump to

Keyboard shortcuts

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