| | |
| | | return res.Success, res.Data |
| | | } |
| | | |
| | | func (api Gb28181Api) GetVssChannel(publicId string) (bool, interface{}) { |
| | | url := api.getBasicUrl() + DATA_URL_PREFIX + "/gb28181/getVssChannel" |
| | | client := NewClient() |
| | | paramQuery := map[string]string { |
| | | "id": publicId, |
| | | } |
| | | respBody, err := client.DoGetRequest(url, paramQuery, nil) |
| | | if err !=nil { |
| | | return false,nil |
| | | } |
| | | var res Result |
| | | if err = json.Unmarshal(respBody, &res); err != nil { |
| | | return false,nil |
| | | } |
| | | return res.Success, res.Data |
| | | } |
| | | |
| | | |
| | | func (api Gb28181Api) TreeSelected() (bool, interface{}) { |
| | | url := api.getBasicUrl() + DATA_URL_PREFIX + "/gb28181/treeSelected" |