| | |
| | | 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"` |
| | | } |
| | |
| | | } |
| | | |
| | | // 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 |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | 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 |
| | | } |