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

是否支持修改 ApiReturnSucc/ApiReturnError 的类型? #39

Open
hlskysong opened this issue Nov 23, 2022 · 1 comment
Open

是否支持修改 ApiReturnSucc/ApiReturnError 的类型? #39

hlskysong opened this issue Nov 23, 2022 · 1 comment
Labels

Comments

@hlskysong
Copy link

如题, 是否支持修改 ApiReturnSucc/ApiReturnError 的类型?

场景: 兼容已有的接口规范

@k8w
Copy link
Owner

k8w commented Nov 23, 2022

目前可以通过 preRecvDataFlow 和 preSendDataFlow 来修改。
但目前这种方式有缺陷,就是会需要 JSON.parse 修改后再 JSON.stringify。

后续版本会增加相关的配置选项,可以先临时使用 Flow 过渡。

@k8w k8w added the question label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants