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

关于Client的复用问题 #4

Open
PhoenixL0911 opened this issue Oct 12, 2023 · 2 comments
Open

关于Client的复用问题 #4

PhoenixL0911 opened this issue Oct 12, 2023 · 2 comments

Comments

@PhoenixL0911
Copy link

在Saas系统中,可能会同时对多个AuthCorpId企业进行服务,目前的设计没办法复用Client,AuthCorpId和AuthCorpPermanentCode应当改成动态或者可入参的方式呈现

@wenerme
Copy link
Owner

wenerme commented Oct 12, 2023

@DeerSunny Client 太轻了,支持复制使用即可, .With 创建一个新的,设置新的 Auth 信息即可

@wenerme
Copy link
Owner

wenerme commented Oct 12, 2023

最近 NodeJS 重新设计了下,感觉新的设计会好一点,不过 Golang 感觉只能目前这样

NodeJS 的 https://github.com/wenerme/wode/blob/main/packages/client/src/wecom/server/WecomCorpClient.ts

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

No branches or pull requests

2 participants