liuxiaolong
2020-06-28 71ce16cb6eba7898b6e555e6b29c3608b39e2892
controllers/cameraRule.go
@@ -2,6 +2,7 @@
import (
   "basic.com/dbapi.git"
   "basic.com/valib/logger.git"
   "github.com/gin-gonic/gin"
   "webserver/extend/code"
   "webserver/extend/util"
@@ -35,6 +36,7 @@
   }
   var api dbapi.CameraRuleApi
   b,d := api.FindByCameraId(cameraId)
   logger.Debug("b:", b, d)
   if b {
      util.ResponseFormat(c,code.Success,d)
   } else {
@@ -179,11 +181,11 @@
// @Summary 根据分组id删除摄像机算法规则
// @Description 根据分组id删除摄像机算法规则
// @Produce json
// @Tags CameraTaskArgs
// @Tags 摄像机规则
// @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/deleteGroup/{groupId} [get]
// @Router /data/api-v/camera/rule/deleteGroup/{groupId} [delete]
func (crc CameraRuleController) DeleteByGroup(c *gin.Context) {
   groupId := c.Param("groupId")
   if groupId == "" {