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

怎么添加对响应内容的预处理 #183

Open
CtrlAndZ opened this issue Oct 23, 2024 · 0 comments
Open

怎么添加对响应内容的预处理 #183

CtrlAndZ opened this issue Oct 23, 2024 · 0 comments

Comments

@CtrlAndZ
Copy link

比如请求的接口以json格式响应内容,而这一批接口都有固定格式:

{
    "code": 200,
    "data": {},
    "msg": null
}

而其中code 为200表示正常,不为两百能抛出msg异常,数据响应可以解包,直接返回其中的data

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

1 participant