Merged
Conversation
Owner
|
麻烦fix一下ci的错误 |
Contributor
Author
这个ci错误是结构体命名的问题。 所以我考虑修改提示错误中的CustomerService为KeFu,虽然为拼音,但是简明扼要,又对应公众号平台里面的命名。 |
Owner
|
不建议英文和拼音混用。这里提示包名已经是 |
Contributor
Author
嗯嗯,Manager已经按照修改了。 新添加了一个NewCommonError函数,针对微信一些接口没有errcode和errmsg的格式,也可以返回该通用错误。 |
silenceper
requested changes
Aug 9, 2022
| var res resKeFuOnlineList | ||
| err = json.Unmarshal(response, &res) | ||
| if err != nil { | ||
| err = util.NewCommonError("ListOnlineCustomerService", -1, err.Error()) |
Contributor
Author
There was a problem hiding this comment.
接口没有errmsg和errcode返回字段。
不过在返回结构体中已经添加了这两个字段,该用util.DecodeWithError进行解析。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
所有代码均自测通过;
官方文档有2处:
官方文档【1】链接:
https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
官方文档【2】链接:
https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html
以上两处文档不同之处有几方面:
1中添加和更新客服不需要密码参数,2中有参数。代码采用1文档
1中删除客服账号使用get请求,2中使用post请求。代码采用2文档