Bläddra i källkod

fig_响应格式

Ethan 6 månader sedan
förälder
incheckning
34375bd3f0
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      model/http_model/common_response.go

+ 2 - 2
model/http_model/common_response.go

@@ -2,8 +2,8 @@ package http_model
 
 // CommonResponse 接口通用的返回结构体
 type CommonResponse struct {
-	Status  int32       `json:"status"`
-	Message string      `json:"message"`
+	Status  int32       `json:"code"`
+	Message string      `json:"msg"`
 	Data    interface{} `json:"data"`
 }
 type CommonRequest interface {