We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
以前的接口定义中已以rpc接口返回值作为json返回值中data,error中放置返回体中code/error、msg,使用中间件将code/error、msg写入返回体。 但是实际上这个形式是不可取的:
The text was updated successfully, but these errors were encountered:
规定下http status和error两个错误码的使用: http status 使用于返回体结构被破坏情况,如鉴权错误、参数错误等 返回体结构正常时,使用StatusOK 200+状态码标记
StatusOK 200
Sorry, something went wrong.
fdkevin0
No branches or pull requests
以前的接口定义中已以rpc接口返回值作为json返回值中data,error中放置返回体中code/error、msg,使用中间件将code/error、msg写入返回体。
但是实际上这个形式是不可取的:
根据以上原因,接口定义将会改为更标准形式,rpc err将只承载内部错误,而非返回体错误
The text was updated successfully, but these errors were encountered: