zhangqian
2024-02-29 9cb9f28bdc847ccc03587be101ffef817991082c
total 改interface
1个文件已修改
6 ■■■■ 已修改文件
extend/util/response.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
    }