zhangzengfei
2019-10-31 2bd2068c999cda5bda8c0787ed0dcaac6cb7afdb
controllers/cameraTask.go
@@ -74,6 +74,7 @@
   Polygon CameraPolygonVo `json:"polygon"`
}
// @Security ApiKeyAuth
// @Summary 查询所有任务
// @Description "查询所有任务"
// @Accept json
@@ -95,6 +96,7 @@
   }
}
// @Security ApiKeyAuth
// @Summary 摄像机添加一个任务
// @Description 摄像机添加一个任务
// @Produce json
@@ -115,10 +117,15 @@
   if b,data := api.AddTask(cameraId, taskId);b {
      util.ResponseFormat(c,code.AddSuccess, data)
   } else {
      util.ResponseFormat(c,code.ComError, data)
      if data.(string) == "此国标摄像机已在其它服务器配置任务!" {
         util.ResponseFormat(c,code.AddTaskErr, data)
      } else {
         util.ResponseFormat(c,code.ComError, data)
      }
   }
}
// @Security ApiKeyAuth
// @Summary 查询所有任务
// @Description "查询所有任务"
// @Produce json
@@ -142,7 +149,7 @@
   }
}
// @Security ApiKeyAuth
// @Summary 摄像机保存任务
// @Description 摄像机保存任务
// @Accept json
@@ -171,6 +178,7 @@
   }
}
// @Security ApiKeyAuth
// @Summary 删除摄像机的任务
// @Description 删除摄像机的任务
// @Produce json
@@ -207,6 +215,7 @@
   AlarmLevel int `json:"alarm_level"`
}
// @Security ApiKeyAuth
// @Summary 保存任务是否下传数据
// @Description 保存任务是否下传数据
// @Accept json
@@ -233,6 +242,7 @@
   }
}
// @Security ApiKeyAuth
// @Summary 保存规则组报警等级
// @Description 保存规则组报警等级
// @Produce json
@@ -263,6 +273,7 @@
   Status int `json:"status"`
}
// @Security ApiKeyAuth
// @Summary 更新任务状态
// @Description 更新任务状态
// @Produce json