qixiaoning
2025-10-29 9b17a8dcbc1f94eb117a37b3b24ca9dae0d2d588
push-service/controllers/pushSet.go
@@ -32,9 +32,10 @@
      Alias:   "camInfo",
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "cameraId", Name: "摄像机ID", Alias: "cameraId"},
         {Checked: true, Id: "cameraName", Name: "摄像机名称", Alias: "cameraName"},
         {Checked: true, Id: "cameraAddr", Name: "摄像机地址", Alias: "cameraAddr"},
         {Checked: true, Id: "camera_id", Name: "摄像机ID", Alias: "camera_id"},
         {Checked: true, Id: "camera_name", Name: "摄像机名称", Alias: "camera_name"},
         {Checked: true, Id: "camera_addr", Name: "摄像机地址", Alias: "camera_addr"},
         {Checked: true, Id: "camera_rtsp", Name: "RTSP地址", Alias: "camera_rtsp"},
      },
   }
   // sceneInfoSet := vo.PushSetMenu{
@@ -57,12 +58,12 @@
      Alias:   "aiTasks",
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "taskId", Name: "任务id", Alias: "taskId"},
         {Checked: true, Id: "taskName", Name: "任务名称", Alias: "taskName"},
         {Checked: true, Id: "aiTasks.#.eventLevel", Name: "事件等级", Alias: "eventLevel"},
         {Checked: true, Id: "aiTasks.#.workingTime", Name: "时间段", Alias: "workingTime"},
         {Checked: true, Id: "aiTasks.#.rules", Name: "任务描述", Alias: "rules"},
         {Checked: true, Id: "aiTasks.#.taskDescription", Name: "备注", Alias: "taskDescription"},
         {Checked: true, Id: "task_id", Name: "任务id", Alias: "task_id"},
         {Checked: true, Id: "task_name", Name: "任务名称", Alias: "task_name"},
         {Checked: true, Id: "event_level", Name: "事件等级", Alias: "event_level"},
         {Checked: true, Id: "working_time", Name: "时间段", Alias: "working_time"},
         {Checked: true, Id: "rules", Name: "任务描述", Alias: "rules"},
         {Checked: true, Id: "task_description", Name: "备注", Alias: "task_description"},
      },
   }
   serverSet := vo.PushSetMenu{
@@ -71,9 +72,9 @@
      Alias:   "serverInfo",
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "analyServerId", Name: "设备ID", Alias: "analyServerId"},
         {Checked: true, Id: "analyServerIp", Name: "设备IP", Alias: "analyServerIp"},
         {Checked: true, Id: "analyServerName", Name: "设备名称", Alias: "analyServerName"},
         {Checked: true, Id: "analy_server_id", Name: "设备ID", Alias: "analy_server_id"},
         {Checked: true, Id: "analy_server_ip", Name: "设备IP", Alias: "analy_server_ip"},
         {Checked: true, Id: "analy_server_name", Name: "设备名称", Alias: "analy_server_name"},
      },
   }
   dataSet := vo.PushSetMenu{
@@ -83,47 +84,50 @@
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "id", Name: "主键ID", Alias: "id"},
         {Checked: true, Id: "isDelete", Name: "是否删除", Alias: "isDelete"},
         {Checked: true, Id: "likeDate", Name: "比对时间", Alias: "likeDate"},
         {Checked: true, Id: "picDate", Name: "抓拍时间", Alias: "picDate"},
         {Checked: true, Id: "updateTime", Name: "更新时间", Alias: "updateTime"},
         {Checked: true, Id: "picMaxUrl", Name: "告警全景图地址", Alias: "picMaxUrl"},
         {Checked: true, Id: "picSrcUrl", Name: "原始全景图地址", Alias: "picSrcUrl"},
         {Checked: true, Id: "picId", Name: "图片ID", Alias: "picId"},
         {Checked: true, Id: "picWH.picH", Name: "图片高", Alias: "picH"},
         {Checked: true, Id: "picWH.picW", Name: "图片宽", Alias: "picW"},
         {Checked: true, Id: "sdkName", Name: "sdk类型", Alias: "sdkName"},
         {Checked: true, Id: "videoUrl", Name: "录像地址", Alias: "videoUrl"},
         {Checked: true, Id: "content", Name: "场景名称", Alias: "content"},
         {Checked: true, Id: "linkTag", Name: "联动任务标志", Alias: "linkTag"},
         {Checked: true, Id: "otherLabels", Name: "其他标签", Alias: "otherLebels"},
         {Checked: true, Id: "showLabels", Name: "算法标签", Alias: "showLabels"},
         {Checked: true, Id: "version", Name: "索引版本", Alias: "version"},
         {Checked: true, Id: "isAlarm", Name: "是否报警", Alias: "isAlarm"},
         {Checked: true, Id: "detect_time", Name: "创建时间", Alias: "detect_time"},
         {Checked: true, Id: "zh_desc_class", Name: "中文描述", Alias: "zh_desc_class"},
         {Checked: true, Id: "image_path", Name: "图像地址", Alias: "image_path"},
         {Checked: true, Id: "video_path", Name: "录像地址", Alias: "video_path"},
         {Checked: true, Id: "event_level_name", Name: "事件等级", Alias: "event_level_name"},
         {Checked: true, Id: "suggestion", Name: "处理建议", Alias: "suggestion"},
         {Checked: true, Id: "risk_description", Name: "隐患描述", Alias: "risk_description"},
         {Checked: true, Id: "is_warning", Name: "是否预警", Alias: "is_warning"},
      },
   }
   // detectAreaSet := vo.PushSetMenu{
   //    Id:      "detectAreaInfo",
   //    Name:    "检测区域",
   //    Alias:   "detectAreaInfo",
   //    Checked: true,
   //    Children: []vo.PushSetMenu{
   //       {Checked: true, Id: "targetInfo.#.areaId", Name: "检测区域id", Alias: "areaId"},
   //       {Checked: true, Id: "targetInfo.#.areaName", Name: "检测区域名称", Alias: "areaName"},
   //    },
   // }
   // targetSet := vo.PushSetMenu{
   //    Id:      "targetInfo",
   //    Name:    "目标",
   //    Alias:   "targetInfo",
   //    Checked: true,
   //    Children: []vo.PushSetMenu{
   //       {Checked: true, Id: "targetInfo.#.attribute", Name: "算法属性", Alias: "attribute"},
   //       {Checked: true, Id: "targetInfo.#.targetLocation", Name: "目标坐标", Alias: "targetLocation"},
   //       {Checked: true, Id: "targetInfo.#.targetScore", Name: "目标置信度", Alias: "targetScore"},
   //       {Checked: true, Id: "targetInfo.#.targetType", Name: "目标类别", Alias: "targetType"},
   //    },
   // }
   detectAreaSet := vo.PushSetMenu{
      Id:      "areaInfo",
      Name:    "检测区域",
      Alias:   "areaInfo",
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "area_id", Name: "检测区域id", Alias: "area_id"},
         {Checked: true, Id: "area_name", Name: "检测区域名称", Alias: "area_name"},
         {Checked: true, Id: "proportion", Name: "检测区域占比", Alias: "proportion"},
      },
   }
   KnowLedgeSet := vo.PushSetMenu{
      Id:      "knowLedgeInfo",
      Name:    "知识库",
      Alias:   "knowLedgeInfo",
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "knowledge_id", Name: "ID", Alias: "knowledge_id"},
         {Checked: true, Id: "knowledge_name", Name: "知识库名称", Alias: "knowledge_name"},
         {Checked: true, Id: "knowledge_doc", Name: "知识库文档", Alias: "knowledge_doc"},
      },
   }
   targetSet := vo.PushSetMenu{
      Id:      "targetInfo",
      Name:    "目标",
      Alias:   "targetInfo",
      Checked: true,
      Children: []vo.PushSetMenu{
         {Checked: true, Id: "attribute", Name: "属性", Alias: "attribute"},
         {Checked: true, Id: "target_location", Name: "目标坐标", Alias: "target_location"},
         {Checked: true, Id: "target_score", Name: "目标置信度", Alias: "target_score"},
         {Checked: true, Id: "target_type", Name: "目标类别", Alias: "target_type"},
      },
   }
   // dtSet := vo.PushSetMenu{
   //    Id:      "tableInfo",
   //    Name:    "底库信息",
@@ -153,7 +157,7 @@
   //    },
   // }
   // set = append(set, camInfoSet, sceneInfoSet, serverSet, dataSet, detectAreaSet, targetSet, dtSet, dbpInfo)
   set = append(set, camInfoSet, taskInfoSet, serverSet, dataSet)
   set = append(set, camInfoSet, taskInfoSet, serverSet, dataSet, detectAreaSet, KnowLedgeSet, targetSet)
   return &bhomeclient.Reply{Success: true, Data: set}
}