| | |
| | | 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{ |
| | |
| | | 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{ |
| | |
| | | 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{ |
| | |
| | | {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: "底库信息", |
| | |
| | | // }, |
| | | // } |
| | | // 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} |
| | | } |