From af1996626affb7e34ad88978f618b5eec7e1972a Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 11 十月 2019 14:50:50 +0800
Subject: [PATCH] add GetAllCamerasByServer

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

diff --git a/dbpersonApi.go b/dbpersonApi.go
index ec27bc3..e1a07f0 100644
--- a/dbpersonApi.go
+++ b/dbpersonApi.go
@@ -42,6 +42,27 @@
 	return res.Success,res.Data
 }
 
+func (api DbPersonApi) UpdateFace(id string,faceFeature string, pic string) (bool,interface{}) {
+	url := BASIC_URL + DATA_URL_PREFIX + "/dbperson/updateFace"
+	client := NewClient()
+	paramBody := map[string]interface{}{
+		"id": id,
+		"faceFeature": faceFeature,
+		"personPicUrl": pic,
+	}
+	body,err := client.DoPostRequest(url,CONTENT_TYPE_JSON, paramBody,nil,nil)
+	if err != nil {
+		return false,nil
+	}
+
+	var res Result
+	if err = json.Unmarshal(body, &res); err != nil {
+		return false,nil
+	}
+
+	return res.Success,res.Data
+}
+
 func (api DbPersonApi) AddDbPerson(paramBody map[string]interface{}) (bool,interface{}) {
 	url := BASIC_URL + DATA_URL_PREFIX + "/dbperson/addDbPerson"
 	client := NewClient()

--
Gitblit v1.8.0