From f903c085b8adde79c3aeca453a9b935adb1ef033 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 26 十月 2019 14:16:58 +0800
Subject: [PATCH] fix uout

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

diff --git a/controllers/pollConfig.go b/controllers/pollConfig.go
index 014a071..389c713 100644
--- a/controllers/pollConfig.go
+++ b/controllers/pollConfig.go
@@ -13,8 +13,8 @@
 
 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"`      //鏄惁鍚敤杞
 }
 
@@ -22,7 +22,7 @@
 // @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]
@@ -46,7 +46,7 @@
 // @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]

--
Gitblit v1.8.0