Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Users ¶
func Users() orm.QuerySeter
Types ¶
type User ¶
type User struct { Id int64 Email string `orm:"size(64);unique" form:"Email" valid:"Required;Email"` Password string `orm:"size(32)" form:"Password" valid:"Required;MinSize(6)"` Repassword string `orm:"-" form:"Repassword" valid:"Required"` Lastlogintime time.Time `orm:"type(datetime);null" form:"-"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now;type(datetime)"` }
func (*User) ReadOrCreate ¶
func (*User) Valid ¶
func (u *User) Valid(v *validation.Validation)
Click to show internal directories.
Click to hide internal directories.