From d9e01c51a525adf4f2393a95f87604e3b6e79ad2 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期二, 19 十一月 2019 15:57:19 +0800
Subject: [PATCH] fix all

---
 controllers/pollConfig.go |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/controllers/pollConfig.go b/controllers/pollConfig.go
index 014a071..9362d88 100644
--- a/controllers/pollConfig.go
+++ b/controllers/pollConfig.go
@@ -13,16 +13,17 @@
 
 type PollConfig struct {
 	ServerId   string `json:"server_id"`   //鏈嶅姟鍣╥d
-	PollPeriod int    `json:"poll_period"` //杞鍛ㄦ湡
-	Delay      int    `json:"delay"`       //寤舵椂鏃堕棿
+	PollPeriod int32    `json:"poll_period"` //杞鍛ㄦ湡
+	Delay      int32    `json:"delay"`       //寤舵椂鏃堕棿
 	Enable     bool   `json:"enable"`      //鏄惁鍚敤杞
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨杞鍛ㄦ湡
 // @Description 淇濆瓨杞鍛ㄦ湡
 // @Produce json
 // @Tags 杞閰嶇疆
-// @Param period query int true "杞鍛ㄦ湡"
+// @Param period formData 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/pollConfig/savePollPeriod [post]
@@ -42,11 +43,12 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨杞寤舵椂
 // @Description 淇濆瓨杞寤舵椂
 // @Produce json
 // @Tags 杞閰嶇疆
-// @Param delay query int true "杞寤舵椂鏃堕棿"
+// @Param delay formData 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/pollConfig/savePollDelay [post]
@@ -66,6 +68,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鑾峰彇鏈満杞閰嶇疆
 // @Description 鑾峰彇鏈満杞閰嶇疆
 // @Produce json
@@ -87,8 +90,10 @@
 	Enable bool `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒囨崲杞寮�鍏�
 // @Description 鍒囨崲杞寮�鍏�
+// @Accept json
 // @Produce json
 // @Tags 杞閰嶇疆
 // @Param argBody body controllers.PollEnableVo true "寮�鍏冲弬鏁�"

--
Gitblit v1.8.0