From 379dcbe019f9283f8dc594f582b61523ec458989 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期二, 03 十二月 2019 14:34:04 +0800
Subject: [PATCH] fix

---
 controllers/fileAnalysisSetting.go |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/controllers/fileAnalysisSetting.go b/controllers/fileAnalysisSetting.go
index b7d7628..11c4f59 100644
--- a/controllers/fileAnalysisSetting.go
+++ b/controllers/fileAnalysisSetting.go
@@ -11,7 +11,13 @@
 
 }
 
-
+// @Summary 鑾峰彇鏈湴鏂囦欢寮�鍏宠缃�
+// @Description 鑾峰彇鏈湴鏂囦欢寮�鍏宠缃�
+// @Produce json
+// @Tags 鏈湴鏂囦欢
+// @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
+// @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
+// @Router /data/api-v/fileSetting/show [get]
 func (fsc FileAnalysisSettingController) Show(c *gin.Context) {
 	var api dbapi.FileAnalysisApi
 	setting, err := api.GetFileAnalysisSet()
@@ -26,6 +32,15 @@
 	Enable bool 	`json:"enable"`
 }
 
+// @Summary 鍒囨崲鏈湴鏂囦欢鍒嗘瀽寮�鍏�
+// @Description 鍒囨崲鏈湴鏂囦欢鍒嗘瀽寮�鍏�
+// @Accept json
+// @Produce json
+// @Tags 鏈湴鏂囦欢
+// @Param reqBody body controllers.EnableSet 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/fileSetting/changeEnable [post]
 func (fsc FileAnalysisSettingController) ChangeEnable(c *gin.Context) {
 	var reqBody EnableSet
 	c.BindJSON(&reqBody)

--
Gitblit v1.8.0