liuxiaolong
2020-06-05 7c811247ecf143e08c576986a884bedadc57dd66
controllers/cameraTimerule.go
@@ -29,7 +29,8 @@
   Start string `json:"start"`//开始
   End   string `json:"end"`//结束
}
//
// @Security ApiKeyAuth
// @Summary 时间规则保存
// @Description 时间规则保存
// @Accept json
@@ -51,7 +52,7 @@
   paramBody["id"] = vo.Id
   paramBody["name"] = vo.Name
   paramBody["time_rule"] = vo.TimeRule
   fmt.Println("paramBody: ", paramBody)
   var api dbapi.CameraApi
   flag, data := api.SaveCameraTimerule(paramBody)
   if flag {
@@ -62,9 +63,9 @@
   util.ResponseFormat(c,code.ComError,"保存失败")
}
// @Security ApiKeyAuth
// @Summary 删除时间规则
// @Description 删除时间规则
// @Accept json
// @Produce json
// @Tags CameraTimerule
// @Param  id query string  true "id"
@@ -85,6 +86,7 @@
   util.ResponseFormat(c, code.ComError, "删除失败")
}
// @Security ApiKeyAuth
// @Summary 查找所有时间规则
// @Description 查找所有时间规则
// @Accept json