From d430c0d737027cf8ca9e8e55836a3646c788e981 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期三, 20 一月 2021 11:53:11 +0800
Subject: [PATCH] GetAllCamerasByServer添加runType参数
---
cameraGroupApi.go | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/cameraGroupApi.go b/cameraGroupApi.go
index 3207588..1e71527 100644
--- a/cameraGroupApi.go
+++ b/cameraGroupApi.go
@@ -55,4 +55,21 @@
return false,nil
}
return res.Success,res.Data
+}
+
+func (api CameraGroupApi) Delete(groupId string) bool {
+ url := api.getBasicUrl() + DATA_URL_PREFIX + "/camera/group/del"
+ client := NewClient()
+ paramMap := make(map[string]string,0)
+ paramMap["groupId"] = groupId
+ body, err := client.DoPostRequest(url,CONTENT_TYPE_FORM,nil,paramMap, nil)
+ if err != nil {
+ return false
+ }
+
+ var res Result
+ if err = json.Unmarshal(body, &res); err != nil {
+ return false
+ }
+ return res.Success
}
\ No newline at end of file
--
Gitblit v1.8.0