liuxiaolong
2019-10-26 eb2c3a8890a0e9695c0cd2bc3b3dc310c6fbcfa9
controllers/pollConfig.go
@@ -13,8 +13,8 @@
type PollConfig struct {
   ServerId   string `json:"server_id"`   //服务器id
   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]