فهرست منبع

fig_响应格式

Ethan 6 ماه پیش
والد
کامیت
34375bd3f0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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 {