From 4c9b4ac26d6dcaaf1bb1ff79c135feae6fdb48bc Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 26 十一月 2021 14:22:20 +0800 Subject: [PATCH] 增加接口 GetUserProfile --- cameraPolygonRelationApi.go | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-) diff --git a/cameraPolygonRelationApi.go b/cameraPolygonRelationApi.go index a5a2b1e..09569d9 100644 --- a/cameraPolygonRelationApi.go +++ b/cameraPolygonRelationApi.go @@ -12,9 +12,6 @@ func (api CameraPolygonRelationApi) FindAll() (flag bool,list []protomsg.CameraPolygonRelation) { url := DATA_URL_PREFIX + "/polygon/relation/findAll" netNode := getNetNode(url2Topic(Topic_Scene_Service, url)) - if netNode == nil { - return false,nil - } client := NewClient(WithNodes(netNode)) body, err := client.DoGetRequest(url, nil, nil) if err != nil { @@ -40,9 +37,6 @@ func (api CameraPolygonRelationApi) Relations(paramBody map[string]interface{}) (bool,interface{}) { url := DATA_URL_PREFIX + "/polygon/relations" netNode := getNetNode(url2Topic(Topic_Scene_Service, url)) - if netNode == nil { - return false,nil - } client := NewClient(WithNodes(netNode)) body, err := client.DoPostRequest(url,CONTENT_TYPE_JSON,paramBody,nil,nil) if err != nil { @@ -59,9 +53,6 @@ func (api CameraPolygonRelationApi) SaveRelation(paramBody map[string]interface{}) (bool,interface{}) { url := DATA_URL_PREFIX + "/polygon/relation/save" netNode := getNetNode(url2Topic(Topic_Scene_Service, url)) - if netNode == nil { - return false,nil - } client := NewClient(WithNodes(netNode)) body, err := client.DoPostRequest(url,CONTENT_TYPE_JSON,paramBody,nil,nil) if err != nil { @@ -78,9 +69,6 @@ func (api CameraPolygonRelationApi) DelRelation(id string) bool { url := DATA_URL_PREFIX + "/polygon/relation/del" netNode := getNetNode(url2Topic(Topic_Scene_Service, url)) - if netNode == nil { - return false - } client := NewClient(WithNodes(netNode)) paramMap := make(map[string]string,0) paramMap["id"] = id -- Gitblit v1.8.0