From c4894a8cb422a2923e5c58d6bd053f0bb7927bd0 Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期三, 18 十月 2023 16:21:23 +0800 Subject: [PATCH] 苏州配置文件简化 --- hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/controller/FaceController.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/controller/FaceController.java b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/controller/FaceController.java index c37c313..560b42d 100644 --- a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/controller/FaceController.java +++ b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/face/controller/FaceController.java @@ -1,7 +1,9 @@ package com.thhy.staff.modules.biz.face.controller; +import com.alibaba.fastjson.JSONObject; import com.thhy.general.common.BasicResult; import com.thhy.staff.modules.biz.face.entity.FaceResult; +import com.thhy.staff.modules.biz.face.service.FaceDeviceService; import com.thhy.staff.modules.biz.face.service.FaceServer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; @@ -15,9 +17,45 @@ @Autowired private FaceServer faceServer; + @Autowired + private FaceDeviceService deviceService; + @RequestMapping("/device/login") public FaceResult login(@RequestBody String mess){ FaceResult faceResult = faceServer.login(mess); return faceResult; } + + + @RequestMapping("/syncPerson") + public JSONObject syncPerson(@RequestBody String mess){ + JSONObject jsonObject = faceServer.syncPerson(mess); + return jsonObject; + } + + @RequestMapping("/syncPersonSingle") + public JSONObject syncPersonSingle(@RequestBody String mess){ + JSONObject jsonObject = faceServer.syncPersonSingle(mess); + return jsonObject; + } + + @RequestMapping("/sp/notify") + public JSONObject personNotify(@RequestBody String mess){ + faceServer.personNotify(mess); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("code",0); + jsonObject.put("msg","OK"); + jsonObject.put("success",true); + return jsonObject; + } + + @RequestMapping("/record/upload/online") + public JSONObject record(@RequestBody String mess){ + faceServer.record(mess); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("code",0); + jsonObject.put("msg","OK"); + jsonObject.put("success",true); + return jsonObject; + } } -- Gitblit v1.9.3