controllers/camera.go
@@ -40,6 +40,20 @@ RunEnable bool `json:"run_enable"` //控制实时处理或轮询处理的开关 RunType int `json:"run_type"` //处理类型:0:轮询,1:实时 RunServerId string `json:"run_server_id"` //当前正在处理的分析服务器id Sensors []SensorVo `json:"sensors"` //传感器列表 } type SensorVo struct { Id string `json:"id"` Type int `json:"type"` Ip string `json:"ip"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` Threshold int `json:"threshold"` Enable bool `json:"enable"` DevId string `json:"devId"` } // @Summary 添加摄像机