cart

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Service expose serviceProvider.
	Service *serviceProvider
)

Functions

This section is empty.

Types

type Cart

type Cart struct {
	ID      uint32    `gorm:"column:id;primary_key;auto_increment" json:"id"`
	UserId  uint32    `gorm:"column:userid;not null"               json:"user_id"`
	WareId  uint32    `gorm:"column:wareid;not null"               json:"ware_id"`
	Count   uint8     `gorm:"column:count;not null;default:0"      json:"count"`
	Created time.Time `gorm:"column:created"                       json:"created"`
}

func (Cart) TableName

func (Cart) TableName() string

TableName returns table name in database.

Jump to

Keyboard shortcuts

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