support send response data to dingtalk, feishu, business wechat webho…
…ok and also support send custom text
Describe what problem this pull request solves and how to solve it. If there is an issue associated with it, please attach a link.
添加了发送request body、request header、response到飞书、钉钉、企业微信机器人的功能,也可以发送自己输入的信息,提高前后端联调效率。
Pull Request Checklist
- [ ] I have read the UME contribution document and understand how to contribute, commit the code according to the rules. 我已阅读过 UME 贡献文档,并了解如何进行贡献,按照规则提交了代码
- [ ] I have added the necessary comments in code to ensure that other contributors can understand the reason for the change. 我在修改中已经添加了必要的注释,以确保便于其他贡献者理解修改原因
- [ ] The code has been formatted by dartfmt before push. 代码在提交前已经经过 dartfmt 进行了格式化
- [ ] Change does not involve the adjustment of test cases. Or all existing and new tests are passing. 改动不涉及测试用例调整,或 example 工程与单元测试已经完全跑通
If you need help, consider Join ing the ByteDance Flutter Exchange Group.
如有任何问题,可以加入字节跳动 Flutter 交流群。
Or contact author.
或随时联系开发者。
I'm not sure why an interceptor should send such content, but a log interceptor might do so. If you want to collect requests and responses, it might be better to expose the method to obtain, rather than nested the upload function.
FYI @talisk.
Please write example code in Example project. And then I will ask @AlexV525 to review the code.
When you register the DioInspector, there are three parameter in it's constructor, only the dio is required. Not sure how to write the example code.