Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { db.Model Name string `gorm:"uniqueIndex"` Password string Roles []*Role `gorm:"many2many:account_role"` }
Account 描述账户
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager 管理Account的Manager
func (*Manager) AccountExists ¶ added in v0.0.3
AccountExists 检查账户名对应的账户是否存在
func (*Manager) AddAccount ¶ added in v0.0.3
AddAccount 添加账户
func (*Manager) GetAccount ¶ added in v0.0.3
GetAccount 根据账户名获取账户
func (*Manager) RegisterAccount ¶ added in v0.0.3
RegisterAccount 注册账户
type MobilePhone ¶ added in v0.0.3
type MobilePhone struct { db.Model ProfileUUID string Prefix string // 国家地区码 Number string // 手机号码 }
MobilePhone 记录手机号码
type Profile ¶ added in v0.0.3
type Profile struct { db.Model AccountUUID string Account Account Name string PrimaryMobilePhoneUUID string PrimaryMobilePhone MobilePhone MobilePhone []MobilePhone PrimaryEmailUUID string PrimaryEmail Email Emails []Email PrimaryAddressUUID string PrimaryAddress Address Addresses []Address }
Profile 用于对账户进行描述
Click to show internal directories.
Click to hide internal directories.