Skip to content

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

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

lxm
Copy link

@lxm lxm commented Apr 29, 2025

@xen0n
Copy link
Owner

xen0n commented May 1, 2025

啊,节后看,五一快乐!

@eryajf
Copy link
Contributor

eryajf commented Jun 20, 2025

期待合并。

@xen0n
Copy link
Owner

xen0n commented Jun 21, 2025

试着这两天看一下……很容易会忘记 🤦

@xen0n xen0n closed this Aug 20, 2025
@xen0n xen0n reopened this Aug 20, 2025
@xen0n
Copy link
Owner

xen0n commented Aug 20, 2025

不好意思我是鸽子……重新跑一下 CI

Copy link
Owner

@xen0n xen0n left a 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) {
Copy link
Owner

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 {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么不跟随 API 命名,叫 reqGetUserDetail?

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.

3 participants