Documentation ¶
Index ¶
Constants ¶
View Source
const ( Login = iota Logout )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginHistory ¶
type LoginHistory struct { Id int `xorm:"id pk autoincr"` UId int `xorm:"uid"` CTime time.Time `xorm:"ctime"` Ip string `xorm:"ip"` State int8 `xorm:"state"` Hardware string `xorm:"hardware"` }
func (*LoginHistory) TableName ¶
func (this *LoginHistory) TableName() string
type LoginLast ¶
type User ¶
type User struct { UId int `xorm:"uid pk autoincr"` Username string `xorm:"username" validate:"min=4,max=20,regexp=^[a-zA-Z0-9_]*$"` Passcode string `xorm:"passcode"` Passwd string `xorm:"passwd"` Hardware string `xorm:"hardware"` Status int `xorm:"status"` Ctime time.Time `xorm:"ctime"` Mtime time.Time `xorm:"mtime"` IsOnline bool `xorm:"-"` }
Click to show internal directories.
Click to hide internal directories.