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