sunty
2019-11-19 d9e01c51a525adf4f2393a95f87604e3b6e79ad2
controllers/camera.go
@@ -85,6 +85,7 @@
   err := c.BindJSON(&cam)
   if err != nil {
      logger.Debug("err:",err)
      util.ResponseFormat(c, code.RequestParamError, "参数错误")
      return
   }
@@ -293,6 +294,7 @@
// @Security ApiKeyAuth
// @Summary 切换摄像机运行实时或轮询的开关
// @Description 切换摄像机运行实时或轮询的开关
// @Accept x-www-form-urlencoded
// @Produce json
// @Tags camera
// @Param cameraId formData string true "摄像机id"