address

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

View Source
const (
	DefaultAddress    = true
	NotDefaultAddress = false
)

Variables

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

Functions

This section is empty.

Types

type Address

type Address struct {
	ID        uint32    `gorm:"column:id;primary_key;auto_increment" json:"id"`
	UserID    uint32    `gorm:"column:userid;not null"`
	UserName  string    `gorm:"column:name;not null" json:"user_name"`
	Phone     string    `gorm:"column:phone;not null" json:"phone"`
	Address   string    `gorm:"column:address;type:varchar(128)" json:"address"`
	IsDefault bool      `gorm:"column:isdefault;not null;default:false" json:"is_default"`
	Created   time.Time `gorm:"column:created"`
}

Address represents the address of users.

func (Address) TableName

func (Address) 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