test_mysql_model

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	CardId     int16          `db:"card_id" json:"card_id"`     // card id
	Order      int32          `db:"order" json:"order"`         // order by
	MemberId   sql.NullInt32  `db:"member_id" json:"member_id"` // member id
	Id         uint64         `db:"id" json:"id"`
	Email      string         `db:"email" json:"email"`
	Name       string         `db:"name" json:"name"`
	Address    sql.NullString `db:"address" json:"address"`
	CreateTime time.Time      `db:"create_time" json:"create_time"`
	UpdateTime sql.NullTime   `db:"update_time" json:"update_time"`
}

func NewCustomer

func NewCustomer() *Customer

func (Customer) TableName

func (Customer) TableName() string

Jump to

Keyboard shortcuts

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