refactor: 重构更新多个文件中的相关调用

This commit is contained in:
TsMask
2025-02-20 10:11:40 +08:00
parent f3c33b31ac
commit 5b9bcd6660
34 changed files with 1243 additions and 1894 deletions

View File

@@ -22,7 +22,9 @@ func TotalResp(total int64) map[string]any {
}
func TotalDataResp(data any, total any) map[string]any {
return map[string]any{"code": CODE_SUCC, "data": data, "total": total}
return map[string]any{"code": CODE_SUCC, "data": map[string]any{
"rows": data, "total": total,
}, "msg": "success"}
}
func SuccResp(va map[string]any) map[string]any {