From 90d268dbd544ae876955d8441530f8f768490b7f Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 12 十二月 2019 14:00:52 +0800
Subject: [PATCH] FindAllFile add page and size,should return total
---
fileAnalysis.go | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fileAnalysis.go b/fileAnalysis.go
index b19e329..8045bb3 100644
--- a/fileAnalysis.go
+++ b/fileAnalysis.go
@@ -41,11 +41,13 @@
return res.Success, res.Data
}
-func (api FileAnalysisApi) FindAllFile(fileName string) (bool,interface{}){
+func (api FileAnalysisApi) FindAllFile(fileName string, page int, size int) (bool,interface{}){
url := api.getBasicUrl() + DATA_URL_PREFIX + "/fileAnalysis/findAllFile"
client := NewClient()
paramQuery := map[string]string {
"fileName": fileName,
+ "page": strconv.Itoa(page),
+ "size": strconv.Itoa(size),
}
body, err := client.DoGetRequest(url, paramQuery, nil)
if err != nil {
--
Gitblit v1.8.0