Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoopBinder = func(_ echo.Context, _ *modelCustomer.Customer) error { return nil } )
Functions ¶
func All ¶
func All() map[string]*AccountBind
func Register ¶
func Register(a *AccountBind)
Types ¶
type AccountBind ¶
type AccountBind struct { Type string //类型标识(比如,email) Name string //类型名(中文。比如,邮箱) ObjectName string //发送物件名称(比如,向邮箱发邮件,向手机发短信。这里的"邮件","短信"即是发送物件) Verifier func(echo.Context, *modelCustomer.Customer) error //验证收到的验证码逻辑 Sender func(echo.Context, *modelCustomer.Customer) error //发信逻辑 }
AccountBind 账号绑定操作信息
func Get ¶
func Get(typ string) *AccountBind
type BindOAuthAccount ¶
type BindOAuthAccount struct { IconClass string //图标class属性值 IconImage string //图片图标 WrapClass string Provider string //平台标识 Title string //平台账号名称 Description string //绑定说明 Binded bool //当前账号是否已经绑定 OAuthUsers []*dbschema.OfficialCustomerOauth //已绑定用户列表 }
BindOAuthAccount 第三方平台信息
Click to show internal directories.
Click to hide internal directories.