From c070c02f3fcb8c2c8dfa1ffcadf72a4fb827a43a Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 20 十一月 2019 14:15:34 +0800 Subject: [PATCH] back --- 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