- CBGetUserInfo
This commit is contained in:
@@ -40,32 +40,6 @@ type API struct {
|
||||
msgKey string
|
||||
}
|
||||
|
||||
type SNSTokenInfo struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
ExpiresIn int `json:"expires_in"`
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
OpenID string `json:"openid"`
|
||||
Scope string `json:"scope"`
|
||||
}
|
||||
|
||||
type SNSUserInfo 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 interface{} `json:"privilege"`
|
||||
UnionID string `json:"unionid"`
|
||||
}
|
||||
|
||||
type SessionInfo struct {
|
||||
OpenID string `json:"openid"`
|
||||
SessionKey string `json:"session_key"`
|
||||
UnionID string `json:"unionid"`
|
||||
}
|
||||
|
||||
func New(appID, secret string, config ...*platformapi.APIConfig) *API {
|
||||
curConfig := platformapi.DefAPIConfig
|
||||
if len(config) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user