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参数

---
 fileAnalysis.go |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/fileAnalysis.go b/fileAnalysis.go
index e145bb1..aa61266 100644
--- a/fileAnalysis.go
+++ b/fileAnalysis.go
@@ -205,6 +205,29 @@
 	return res.Success
 }
 
+func (api FileAnalysisApi) BatchStatus(stackId string, isAll bool, idArr []string, status int) bool {
+	url := api.getBasicUrl() + DATA_URL_PREFIX + "/fileAnalysis/batchStatus"
+	client := NewClient()
+	paramBody := map[string]interface{} {
+		"stackId": stackId,
+		"isAll": isAll,
+		"ids":idArr,
+		"status": status,
+	}
+	body,err := client.DoPostRequest(url,CONTENT_TYPE_JSON, paramBody,nil,nil)
+	if err != nil {
+		return false
+	}
+
+	var res Result
+	if err = json.Unmarshal(body, &res); err != nil {
+		logPrint(err)
+		return false
+	}
+
+	return res.Success
+}
+
 func (api FileAnalysisApi) Delete(idArr []string) bool {
 	url := api.getBasicUrl() + DATA_URL_PREFIX + "/fileAnalysis/delete"
 	client := NewClient()

--
Gitblit v1.8.0