From 51a555e6db6dcf71a7c16faa3bf61241a32d2459 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 18 八月 2023 11:12:37 +0800
Subject: [PATCH] fix
---
model/response/common.go | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/model/response/common.go b/model/response/common.go
index b2cbd5a..7687174 100644
--- a/model/response/common.go
+++ b/model/response/common.go
@@ -1,8 +1,21 @@
-package response
-
-type PageResult struct {
- List interface{} `json:"list"`
- Total int64 `json:"total"`
- Page int `json:"page"`
- PageSize int `json:"pageSize"`
-}
+package response
+
+type PageResult struct {
+ List interface{} `json:"list"`
+ Total int64 `json:"total"`
+ Page int `json:"page"`
+ PageSize int `json:"pageSize"`
+}
+
+type ListResponse struct {
+ Code int `json:"code"`
+ Msg string `json:"msg"`
+ Data interface{} `json:"data"`
+ Count int64 `json:"count"`
+}
+
+type Response struct {
+ Code int `json:"code"`
+ Msg string `json:"msg"`
+ Data interface{} `json:"data"`
+}
--
Gitblit v1.8.0