| | |
| | | |
| | | //根据运行类型获取摄像机列表 |
| | | //runType(0:获取轮询列表,1:获取实时列表) |
| | | func (api CameraApi) GetCamerasByRunType(runType int)(flag bool,cameras []protomsg.Camera){ |
| | | func (api CameraApi) GetCamerasByRunType(runType int,cameraName string)(flag bool,cameras []protomsg.Camera){ |
| | | url := BASIC_URL + DATA_URL_PREFIX + "/camera/getCamerasByRunType" |
| | | client := NewClient() |
| | | paramQuery := make(map[string]string,0) |
| | | paramQuery["runType"]=strconv.Itoa(runType) |
| | | paramQuery["cameraName"] = cameraName |
| | | body, err := client.DoGetRequest(url, paramQuery, nil) |
| | | if err != nil { |
| | | return false,nil |