From 62bd99d03c25ff02f101a4522cf1cbd8430b31c3 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期二, 16 七月 2024 20:11:14 +0800
Subject: [PATCH] 修改变量,庄口类型默认值从0变更为1
---
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