Răsfoiți Sursa

fig_响应格式

Ethan 6 luni în urmă
părinte
comite
34375bd3f0
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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 {