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

Restful API如何统一处理呢 #9

Closed
canhuah opened this issue May 24, 2018 · 1 comment
Closed

Restful API如何统一处理呢 #9

canhuah opened this issue May 24, 2018 · 1 comment

Comments

@canhuah
Copy link

canhuah commented May 24, 2018

{
"data": ...,
"errorCode": 0,
"errorMsg": ""
}

这种数据格式的该如何统一处理呢

@wendux
Copy link
Contributor

wendux commented Jun 4, 2018

你可以在响应拦截器中统一处理

@canhuah canhuah closed this as completed Jun 12, 2018
@fly512 fly512 mentioned this issue Jan 7, 2019
AlexV525 added a commit that referenced this issue Feb 13, 2023
…to json is invalid (#9)

Co-authored-by: ipcjs <gipcjs@gmail.com>
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