From 3e988d2b353efc784f07b2c8a470b3cd7d59d264 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 09 四月 2024 09:56:12 +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