Documentation ¶
Index ¶
- func HttpGet(geturl string) (string, error)
- func HttpPost(geturl string, reqData map[string]interface{}) (string, error)
- type Auth_conf
- type Auth_gitee
- type Auth_gitee_err_res
- type Auth_gitee_succ_res
- type Auth_github
- type Auth_github_err_res
- type Auth_github_succ_res
- type Auth_qq
- type Auth_qq_err_res
- type Auth_qq_me
- type Auth_wb
- type Auth_wb_err_res
- type Auth_wb_succ_res
- type Auth_wx
- type Auth_wx_err_res
- type Auth_wx_succ_res
- type Auth_wx_user_info_res
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth_gitee ¶
type Auth_gitee struct {
Conf *Auth_conf
}
type Auth_gitee_err_res ¶
type Auth_gitee_succ_res ¶
type Auth_gitee_succ_res struct {
Access_Token string `json:"access_token"`
}
type Auth_github ¶
type Auth_github struct {
Conf *Auth_conf
}
func (*Auth_github) Get_User_Info ¶
func (e *Auth_github) Get_User_Info(access_token string) (string, error)
获取第三方用户信息
func (*Auth_github) Post_Token ¶
func (e *Auth_github) Post_Token(code string) (string, error)
获取token
type Auth_github_err_res ¶
type Auth_github_succ_res ¶
type Auth_qq_err_res ¶
type Auth_qq_me ¶
type Auth_wb_err_res ¶
type Auth_wb_succ_res ¶
type Auth_wx ¶
type Auth_wx struct {
Conf *Auth_conf
}
func (*Auth_wx) Get_Token ¶
func (e *Auth_wx) Get_Token(code string) (*Auth_wx_succ_res, error)
获取token
func (*Auth_wx) Get_User_Info ¶
func (e *Auth_wx) Get_User_Info(access_token string, openid string) (*Auth_wx_user_info_res, error)
获取第三方用户信息
type Auth_wx_err_res ¶
type Auth_wx_succ_res ¶
type Auth_wx_user_info_res ¶
type Auth_wx_user_info_res struct { Openid string `json:"openid"` Nickname string `json:"nickname"` Sex int `json:"sex"` Province string `json:"province"` City string `json:"city"` Country string `json:"country"` Headimgurl string `json:"headimgurl"` Privilege []string `json:"privilege"` Unionid string `json:"unionid"` }
Click to show internal directories.
Click to hide internal directories.