From 74328e2638ce3b09a126e8343af651256250b8ab Mon Sep 17 00:00:00 2001 From: whyclj <1525436766@qq.com> Date: 星期二, 28 四月 2020 11:02:48 +0800 Subject: [PATCH] 添加各种方法 --- webSockTest/src/com/fgkj/actions/FaceIdentify.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/webSockTest/src/com/fgkj/actions/FaceIdentify.java b/webSockTest/src/com/fgkj/actions/FaceIdentify.java index e4a57cd..1c59ebc 100644 --- a/webSockTest/src/com/fgkj/actions/FaceIdentify.java +++ b/webSockTest/src/com/fgkj/actions/FaceIdentify.java @@ -38,8 +38,66 @@ return SUCCESS; } + /** + * 娣诲姞浜鸿劯 + * @return + */ + public String faceAdd(){ + String str = FaceDetect.faceAdd(json); + result = getGson().toJson(str); + return SUCCESS; + } + /** + * 鍒犻櫎浜鸿劯 + * @return + */ + public String faceDelete(){ + String str = FaceDetect.faceDelete(json); + result = getGson().toJson(str); + return SUCCESS; + } + + /** + * 浜鸿劯鏇存柊 + * @return + */ + public String faceUpdate(){ + String str = FaceDetect.faceUpdate(json); + result = getGson().toJson(str); + return SUCCESS; + } + + /** + * 鑾峰彇鐢ㄦ埛浜鸿劯鍒楄〃 + * @return + */ + public String faceGetList(){ + String str = FaceDetect.faceGetList(json); + result = getGson().toJson(str); + return SUCCESS; + } + /** + * 鑾峰彇鐢ㄦ埛鍒楄〃 + * @return + */ + public String groupGetusers(){ + String str = FaceDetect.groupGetusers(json); + result = getGson().toJson(str); + return SUCCESS; + } + + /** + * 鑾峰彇浜鸿劯澶嶅埗{鐢ㄦ埛浠庝竴涓彮缁勫鍒跺埌鍙︿竴涓彮缁剗 + * @return + */ + public String faceCopy(){ + String str = FaceDetect.faceCopy(json); + result = getGson().toJson(str); + return SUCCESS; + } + public String getResult() { return result; } -- Gitblit v1.9.1