Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var (
ByUid = By(func(p1, p2 *Staff) bool {
return p1.UID < p2.UID
})
)
View Source
var (
VerifyLifeSeconds = 86400
)
Functions ¶
Types ¶
type Verify ¶
type Verify struct {
Id int `db:"id" json:"id"`
Uid string `db:"uid" json:"uid"`
Target string `db:"target" json:"target"`
Type common.AliasType `db:"type_id" json:"type"`
CodeHash int64 `db:"code_hash" json:"-"`
LifeSeconds int `db:"life_seconds" json:"life_seconds"`
Created time.Time `db:"created" json:"created"`
Updated time.Time `db:"updated" json:"updated"`
Code string `db:"-" json:"-"`
}
用户验证,如邮箱、手机等
func (*Verify) CodeHashBytes ¶
Click to show internal directories.
Click to hide internal directories.