refactor: 重构更新多个文件中的相关调用
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user