-
Notifications
You must be signed in to change notification settings - Fork 186
feat: 获取用户敏感信息 #226
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
base: v2
Are you sure you want to change the base?
feat: 获取用户敏感信息 #226
Conversation
啊,节后看,五一快乐! |
期待合并。 |
试着这两天看一下……很容易会忘记 🤦 |
不好意思我是鸽子……重新跑一下 CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不好意思,现在才有空折腾这个项目,看下 rebase 一下?应该没有冲突
@@ -38,6 +38,20 @@ func (c *WorkwxApp) GetUser(userid string) (*UserInfo, error) { | |||
return &obj, nil | |||
} | |||
|
|||
func (c *WorkwxApp) GetUserDetail(ticket string) (*UserInfo, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里需要一个注释,因为疼讯官方给 API endpoint 的命名 detail
实在太恶心了,不加注释的话就会觉得是单纯的“获取用户明细”
@@ -774,6 +774,15 @@ type AuthCodeUserInfo struct { | |||
ExternalUserID string `json:"external_userid,omitempty"` | |||
} | |||
|
|||
// reqAuthTicket2UserInfo 获取访问用户敏感信息 | |||
type reqAuthTicket2UserInfo struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么不跟随 API 命名,叫 reqGetUserDetail
?
增加支持此接口https://developer.work.weixin.qq.com/document/path/95833