From f851fa7727e4b2384bd5c32793bd58c07e55a53d Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 12 十二月 2019 14:24:24 +0800
Subject: [PATCH] FindAllFile add page and size

---
 controllers/fileAnalysis.go |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/controllers/fileAnalysis.go b/controllers/fileAnalysis.go
index 0bf98dd..29d6807 100644
--- a/controllers/fileAnalysis.go
+++ b/controllers/fileAnalysis.go
@@ -3,6 +3,7 @@
 import (
 	"basic.com/dbapi.git"
 	"github.com/gin-gonic/gin"
+	"strconv"
 	"webserver/extend/code"
 	"webserver/extend/util"
 )
@@ -17,13 +18,17 @@
 // @Produce json
 // @Tags 鏈湴鏂囦欢
 // @Param fileName query string false "鏍规嵁鏂囦欢鍚嶇О鏌ヨ"
+// @Param page query int true "褰撳墠椤�"
+// @Param size query int true "姣忛〉鏁伴噺"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/fileAnalysis/findAllFile [get]
 func (fac FileAnalysisController) FindAllFile(c *gin.Context) {
 	fileName := c.Query("fileName")
+	page,_ := strconv.Atoi(c.Query("page"))
+	size,_ := strconv.Atoi(c.Query("size"))
 	var api dbapi.FileAnalysisApi
-	b, d := api.FindAllFile(fileName)
+	b, d := api.FindAllFile(fileName, page, size)
 	if b {
 		util.ResponseFormat(c,code.Success, d)
 	} else {

--
Gitblit v1.8.0