update data handler

This commit is contained in:
2024-06-08 16:02:22 +08:00
parent 83b5e41105
commit 6b5db7cdbd
2 changed files with 9 additions and 8 deletions

View File

@ -22,7 +22,7 @@ type Response struct {
Data string `json:"data"` // 响应body
Code string `json:"code"` // 业务状态码
Message string `json:"message"` // 业务状态码描述
Body string `json:"body"` // 响应数据, 如果 data 本身是 list, 会自动转成 {"list": 真实数据}
Body map[string]any `json:"body"` // 响应数据
ExtendData map[string]string `json:"extend_data"` // 除去 code / message / data 之外的其他数据
HttpCode int `json:"http_code"` // http状态码
HttpCodeStatus string `json:"http_code_status"` // http状态码描述