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

代码中只映射了错误请求的结构体 #2

Closed
feeops opened this issue Jul 14, 2022 · 2 comments
Closed

代码中只映射了错误请求的结构体 #2

feeops opened this issue Jul 14, 2022 · 2 comments

Comments

@feeops
Copy link

feeops commented Jul 14, 2022

代码中只映射了错误请求的结构体

// Response response struct
type Response struct {
Code int64 json:"code"
Msg string json:"msg"
}

如请求成功,返回体为:

{
"Extra": null,
"StatusCode": 0,
"StatusMessage": "success"
}
如请求体格式错误,返回体如下。请检查:

请求体内容格式是否与各消息类型的示例代码一致
请求体大小不能超过20k
{
"code": 9499,
"msg": "Bad Request",
"data": {}
}

参考文档
https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN#f62e72d5

CatchZeng added a commit that referenced this issue Jul 14, 2022
@CatchZeng
Copy link
Owner

感谢你的指正,v1.3.2 已经加上了,可以查看最新的代码

@CatchZeng
Copy link
Owner

@feeops 如果没有问题,我这边就先关闭 issue 了,有问题的话再留言

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