fix: code 0 is success

This commit is contained in:
xkm
2026-03-25 20:49:26 +08:00
parent 04f433c7f3
commit 74306bdc86

View File

@@ -21,7 +21,7 @@ func main() {
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
render.JSON(w, r, map[string]interface{}{
"code": http.StatusOK,
"code": 0,
"message": "Hello World",
"data": struct{}{},
})