| | |
| | | // @Description 根据分组id删除摄像机算法规则 |
| | | // @Produce json |
| | | // @Tags CameraTaskArgs |
| | | // @Param groupId query string true "任务算法参数分组id" |
| | | // @Param groupId path string true "任务算法参数分组id" |
| | | // @Success 200 {string} json "{"code":200, success:true, msg:"请求处理成功", data:""}" |
| | | // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:"错误信息内容"}" |
| | | // @Router /data/api-v/camera/rule/deleteByGroup [get] |
| | | // @Router /data/api-v/camera/rule/deleteGroup/{groupId} [get] |
| | | func (crc CameraRuleController) DeleteByGroup(c *gin.Context) { |
| | | groupId := c.Query("groupId") |
| | | groupId := c.Param("groupId") |
| | | if groupId == "" { |
| | | util.ResponseFormat(c, code.RequestParamError, "id必填") |
| | | return |
| | |
| | | cameraRuleApi :=r.Group(urlPrefix+"/camera/rule") |
| | | { |
| | | cameraRuleApi.GET("/:cameraId", cameraRuleController.FindByCameraId) |
| | | cameraRuleApi.GET("/deleteByGroup",cameraRuleController.DeleteByGroup) |
| | | cameraRuleApi.GET("/deleteGroup/:groupId",cameraRuleController.DeleteByGroup) |
| | | cameraRuleApi.POST("/getLinkRulesByCameraIds",cameraRuleController.GetLinkRulesByCameraIds) |
| | | cameraRuleApi.POST("/save", cameraRuleController.Save) |
| | | cameraRuleApi.POST("/saveLinkRulesByGroup",cameraRuleController.SaveLinkRulesByGroup) |