Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

补充获取授权方帐号基本信息中小程序相关信息 #573

Merged
merged 1 commit into from
Jun 26, 2022
Merged

补充获取授权方帐号基本信息中小程序相关信息 #573

merged 1 commit into from
Jun 26, 2022

Conversation

yueyue1zhe
Copy link
Contributor

No description provided.

@houseme
Copy link
Collaborator

houseme commented Jun 25, 2022

@yueyue1zhe
Copy link
Contributor Author

@houseme 抱歉,我可能并没有理解你给出的这个提示,因为我在项目代码中看到了相关 authorization_info 的处理。
可以进一步明确下这个提示吗?谢谢

var ret struct {
util.CommonError
Info *AuthBaseInfo `json:"authorization_info"`
}

var ret struct {
AuthorizerInfo *AuthorizerInfo `json:"authorizer_info"`
AuthorizationInfo *AuthBaseInfo `json:"authorization_info"`
}

// ID 微信返回接口中各种类型字段
type ID struct {
ID int `json:"id"`
}
// AuthBaseInfo 授权的基本信息
type AuthBaseInfo struct {
AuthrAccessToken
FuncInfo []AuthFuncInfo `json:"func_info"`
}
// AuthFuncInfo 授权的接口内容
type AuthFuncInfo struct {
FuncscopeCategory ID `json:"funcscope_category"`
}
// AuthrAccessToken 授权方AccessToken
type AuthrAccessToken struct {
Appid string `json:"authorizer_appid"`
AccessToken string `json:"authorizer_access_token"`
ExpiresIn int64 `json:"expires_in"`
RefreshToken string `json:"authorizer_refresh_token"`
}

@houseme houseme merged commit c6325ac into silenceper:v2 Jun 26, 2022
@houseme
Copy link
Collaborator

houseme commented Jun 26, 2022

@houseme 抱歉,我可能并没有理解你给出的这个提示,因为我在项目代码中看到了相关 authorization_info 的处理。 可以进一步明确下这个提示吗?谢谢

var ret struct {
util.CommonError
Info *AuthBaseInfo `json:"authorization_info"`
}

var ret struct {
AuthorizerInfo *AuthorizerInfo `json:"authorizer_info"`
AuthorizationInfo *AuthBaseInfo `json:"authorization_info"`
}

// ID 微信返回接口中各种类型字段
type ID struct {
ID int `json:"id"`
}
// AuthBaseInfo 授权的基本信息
type AuthBaseInfo struct {
AuthrAccessToken
FuncInfo []AuthFuncInfo `json:"func_info"`
}
// AuthFuncInfo 授权的接口内容
type AuthFuncInfo struct {
FuncscopeCategory ID `json:"funcscope_category"`
}
// AuthrAccessToken 授权方AccessToken
type AuthrAccessToken struct {
Appid string `json:"authorizer_appid"`
AccessToken string `json:"authorizer_access_token"`
ExpiresIn int64 `json:"expires_in"`
RefreshToken string `json:"authorizer_refresh_token"`
}

已合并,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants