go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

About response format specification

Open licat233 opened this issue 2 years ago • 3 comments

There is a question, why gozero does not have a preset response format specification, and you have to redefine it every time you use it.

Hope go-zero can define an official success response format specification, and error response format specification,

while retaining a user-customizable interface.

licat233 avatar Jun 28 '22 10:06 licat233

The error-handle page on go-zero's document could help you to solve your problem.

kesonan avatar Jun 29 '22 09:06 kesonan

The error-handle page on go-zero's document could help you to solve your problem.

thank you! I know this. It's just that every time I use go zero, I have to redefine these. It's troublesome. It's necessary for the official go zero to provide a correct response format specification, not just an error handle. Kevin asked me to mention an issue here.

licat233 avatar Jun 30 '22 10:06 licat233

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 31 '22 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 14 '22 02:08 github-actions[bot]