From 24d792c5f1d83e0375ae7f91132a75f1dbb8494e Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 29 二月 2024 17:48:31 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/silk/silkServer --- extend/util/response.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extend/util/response.go b/extend/util/response.go index cef9966..3aad2a8 100644 --- a/extend/util/response.go +++ b/extend/util/response.go @@ -17,7 +17,7 @@ Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` - Total int `json:"total"` + Total interface{} `json:"total"` Page int `json:"page"` PageSize int `json:"pageSize"` } @@ -43,7 +43,7 @@ } // ResponseFormatList 杩斿洖鍖呭惈鎬绘暟鐨勫垪琛� -func ResponseFormatList(c *gin.Context, respStatus *code.Code, data interface{}, count int) { +func ResponseFormatList(c *gin.Context, respStatus *code.Code, data interface{}, count interface{}) { if respStatus == nil { respStatus = code.RequestParamError } @@ -55,7 +55,7 @@ }) } -func ResponseFormatListWithPage(c *gin.Context, respStatus *code.Code, data interface{}, count int, page, pageSize int) { +func ResponseFormatListWithPage(c *gin.Context, respStatus *code.Code, data interface{}, count interface{}, page, pageSize int) { if respStatus == nil { respStatus = code.RequestParamError } -- Gitblit v1.8.0