From f529b0fe67d68a4be6e9690043ee5d6837be72df Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期二, 12 一月 2021 11:05:50 +0800
Subject: [PATCH] getAppInfo and voice add

---
 fileStack.go |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/fileStack.go b/fileStack.go
index 568786d..178c850 100644
--- a/fileStack.go
+++ b/fileStack.go
@@ -147,3 +147,24 @@
 
 	return res.Success
 }
+
+func (api FileStackApi) UpdateStatus(idArr []string, status int) bool {
+	url := api.getBasicUrl() + DATA_URL_PREFIX + "/fileStack/updateStatus"
+	client := NewClient()
+	paramBody := map[string]interface{} {
+		"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
+}
\ No newline at end of file

--
Gitblit v1.8.0