Documentation
¶
Index ¶
Constants ¶
View Source
const ( Verified = 1 UnVerified = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mfa ¶
type Mfa struct {
app.Pk
MfaCode string `orm:"column(mfa_code)"`
MfaType MfaCategory `orm:"column(mfa_type)"`
SecretPhoneNumber string `orm:"column(secret_phone_number)"`
SecretEmail string `orm:"column(secret_email)"`
app.TableChangeInfo
}
type MfaCategory ¶
type MfaCategory string
const ( MfaUnknown MfaCategory = "unknown" // 未指定 MfaPhoneNumber MfaCategory = "phone_number" // 手机号 MfaEmail MfaCategory = "email" // 邮箱 MfaWechat MfaCategory = "wechat" // 微信(union_id优先) MfaGoogle MfaCategory = "google_authenticator" // google验证器 MfaMicrosoft MfaCategory = "microsoft_authenticator" // 微软验证器 )
type MfaDevice ¶
type MfaDevice struct {
app.Pk
MfaCode string `orm:"column(mfa_code)"` // MFA编号
Key string `orm:"column(key)"` // MFA设备
app.TableInfo
}
MfaDevice 受信任设备列表
type MfaItem ¶
type MfaItem struct {
app.Pk
MfaCode string `orm:"column(mfa_code)"` // MFA编号
Sn string `orm:"column(sn)"` // 验证编号
Category MfaCategory `orm:"column(mfa_category)"` // 验证类型
app.TableChangeInfo
}
type UserProfile ¶
type UserProfile struct {
app.Pk
UserCode string `orm:"column(user_code)"` // 用户编号
RealName string `orm:"column(real_name)"` // 真实姓名
IdCard string `orm:"column(id_card)"` // 身份证号
IdCardVerified VerifyFlag `orm:"column(id_card_verified)"` // 身份证号验证标记
app.TableChangeInfo
}
UserProfile 用户档案,每个用户必须有
type VerifyFlag ¶
type VerifyFlag int
Click to show internal directories.
Click to hide internal directories.