From 0eeae77a0af3a9ca114408cac9667dc7bf8193fd Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期三, 09 六月 2021 16:26:07 +0800
Subject: [PATCH] FileStack add findAll

---
 userApi.go |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/userApi.go b/userApi.go
index 1fb3666..84ce7e0 100644
--- a/userApi.go
+++ b/userApi.go
@@ -106,4 +106,21 @@
 		return false,nil
 	}
 	return res.Success,res.Data
+}
+
+func (api UserApi) DelUser(ids []string) (bool,interface{}) {
+	url := api.getBasicUrl() + DATA_URL_PREFIX + "/user/delUser"
+	client := NewClient()
+	paramBody := map[string]interface{}{
+		"ids": ids,
+	}
+	respBody, err := client.DoPostRequest(url, CONTENT_TYPE_FORM, paramBody,nil, 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
 }
\ No newline at end of file

--
Gitblit v1.8.0