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.
Click to show internal directories.
Click to hide internal directories.