瀏覽代碼

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 {