fix: code 0 is success
This commit is contained in:
@@ -21,7 +21,7 @@ func main() {
|
|||||||
|
|
||||||
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
render.JSON(w, r, map[string]interface{}{
|
render.JSON(w, r, map[string]interface{}{
|
||||||
"code": http.StatusOK,
|
"code": 0,
|
||||||
"message": "Hello World",
|
"message": "Hello World",
|
||||||
"data": struct{}{},
|
"data": struct{}{},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user