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

Improve developer experience #681

Merged
merged 18 commits into from May 31, 2023
Merged

Improve developer experience #681

merged 18 commits into from May 31, 2023

Conversation

jingyuexing
Copy link
Contributor

  • feat: 添加字符串模板替换
  • feat: 序列化Query请求字符串

@houseme
Copy link
Collaborator

houseme commented May 20, 2023

please fix ci

@jingyuexing
Copy link
Contributor Author

please fix ci

i'm trying

util/query.go Outdated
for key, value := range params {
valueString := ""
switch v := value.(type) {
case int, int8, int16, int32, int64:
Copy link
Collaborator

Choose a reason for hiding this comment

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

是不是参数是 interface 应该考虑一下 uint uint8 uint32 uint64 这些类型?

if response, err = util.HTTPGet(strings.Join([]string{
userSimpleListURL,
util.Query(map[string]interface{}{
"access_token": accessToken,
Copy link
Collaborator

Choose a reason for hiding this comment

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

access_tokendepartment_id 可以搞成静态常量

Copy link
Contributor Author

Choose a reason for hiding this comment

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

access_tokendepartment_id 可以搞成静态常量

可以设置全局的配置项,这个应该是由整个框架负责

Copy link
Collaborator

Choose a reason for hiding this comment

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

access_tokendepartment_id 可以搞成静态常量

可以设置全局的配置项,这个应该是由整个框架负责

目前没这样处理,那这次就处理一下,建立统一的常量管理,access_token,出现的地方还蛮多的。可以在根目录下面建一个常量管理文件以及每个子目录再建一个常量文件

@jingyuexing jingyuexing requested a review from houseme May 20, 2023 10:16
@houseme houseme requested a review from silenceper May 20, 2023 10:53
@jingyuexing
Copy link
Contributor Author

没有人review吗?

@houseme
Copy link
Collaborator

houseme commented May 31, 2023

Author

这个功能是急需使用吗?

@jingyuexing
Copy link
Contributor Author

Author

这个功能是急需使用吗?

我开发的时候要用到的

@houseme houseme merged commit 8bae546 into silenceper:v2 May 31, 2023
6 checks passed
@houseme
Copy link
Collaborator

houseme commented May 31, 2023

Author

这个功能是急需使用吗?

我开发的时候要用到的

先根据 commit 获取最新的代码go get -u -v github.com/silenceper/wechat/v2@8bae546

@jingyuexing
Copy link
Contributor Author

Author

这个功能是急需使用吗?

我开发的时候要用到的

先根据 commit 获取最新的代码go get -u -v github.com/silenceper/wechat/v2@8bae546

OK

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