refactor(后端): 重构后端API响应数据格式,统一为Code Message Data

This commit is contained in:
2026-06-03 18:03:37 +08:00
parent d6d2a4ad96
commit 58a29f2b9d
3 changed files with 130 additions and 36 deletions
+7
View File
@@ -0,0 +1,7 @@
package model
type APIResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data any `json:"data"`
}