From 3032034d254fc15f06a1d4260f35c49f0ef1e12f Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期五, 02 八月 2024 11:57:33 +0800 Subject: [PATCH] 添加接口,添加新的薪资查询和修改接口 --- extend/util/response.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extend/util/response.go b/extend/util/response.go index 29da652..3aad2a8 100644 --- a/extend/util/response.go +++ b/extend/util/response.go @@ -3,8 +3,8 @@ import ( "fmt" "github.com/gin-gonic/gin" - "jialian/extend/code" "net/http" + "silkserver/extend/code" ) type Response struct { @@ -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