Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthTypeGuest = token.AuthTypeGuest AuthTypeEmailPassword = token.AuthTypeEmailPassword AuthTypeEmailCheckCode = token.AuthTypeEmailCheckCode AuthTypePhonePassword = token.AuthTypePhonePassword AuthTypePhoneCheckCode = token.AuthTypePhoneCheckCode AuthTypeOAuthQQ = token.AuthTypeOAuthQQ AuthTypeOAuthWechat = token.AuthTypeOAuthWechat AuthTypeOAuthWeibo = token.AuthTypeOAuthWeibo )
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
认证, 获取token.
uri?auth_type=guest uri?auth_type=email_password&email=XXX&password=XXX uri?auth_type=phone_password&phone=XXX&password=XXX uri?auth_type=email_checkcode&email=XXX&checkcode=XXX uri?auth_type=phone_checkcode&phone=XXX&checkcode=XXX
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.