From b0b3930baee19edb9c602c04d1ec78acf856638a Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期日, 08 三月 2020 12:26:41 +0800
Subject: [PATCH] add log

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

diff --git a/controllers/fileAnalysis.go b/controllers/fileAnalysis.go
index 9f00c4b..33950b8 100644
--- a/controllers/fileAnalysis.go
+++ b/controllers/fileAnalysis.go
@@ -151,7 +151,7 @@
 // @Tags 鏈湴鏂囦欢
 // @Param stackId query string true "stackId"
 // @Param type query int true "type"
-// @Param name query string "鎼滅储鏉′欢"
+// @Param name query string false "鎼滅储鏉′欢"
 // @Param page query int true "褰撳墠椤�"
 // @Param size query int true "姣忛〉鏁伴噺"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
@@ -174,10 +174,10 @@
 		size = 20
 	}
 	var api dbapi.FileAnalysisApi
-	arr,err := api.FindByStackId(stackId, typ, name, page, size)
-	if err !=nil {
+	b,d := api.FindByStackId(stackId, typ, name, page, size)
+	if !b {
 		util.ResponseFormat(c,code.ComError, "")
 	} else {
-		util.ResponseFormat(c,code.Success, arr)
+		util.ResponseFormat(c,code.Success, d)
 	}
 }

--
Gitblit v1.8.0