Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FakeNow = func() time.Time { return time.Unix(2000000000, 0) }
)
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) GenAddress ¶
func (*Generator) GenItemPaymentFeatures ¶
func (g *Generator) GenItemPaymentFeatures() *ItemPaymentFeatures
func (*Generator) GenUserPaymentFeatures ¶
func (g *Generator) GenUserPaymentFeatures() *UserPaymentFeatures
type ItemPaymentFeatures ¶
type User ¶
type User struct { ID int64 Name string Age int BirthDate time.Time Gender Gender Address *Address Language string Interests []string UserTags []string CreatedAt time.Time UpdatedAt time.Time Credit Credit CreditLimit float64 Discount float64 Balance float64 IsVip bool IsStudent bool CurrentDevice *Device RecentDevices []*Device PaymentFeatures *UserPaymentFeatures }
Click to show internal directories.
Click to hide internal directories.