From e7deb6d67c0e0f1361a5c66f076b722a3b02846b Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期四, 19 十月 2023 11:33:52 +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 fe93497..6bc142c 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 @@ -5,6 +5,8 @@ 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.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -48,4 +50,40 @@ 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; + } + + @RequestMapping("/queryPer") + public BasicResult queryPer(String perId){ + faceServer.queryPer(perId); + return BasicResult.success(); + } + + @RequestMapping("/getPersonDetail") + public BasicResult getPersonDetail(@RequestBody String mess){ + Logger logger = LoggerFactory.getLogger(FaceController.class); + logger.info("查询结果"+mess); + return BasicResult.success(); + } + + + @RequestMapping("/deleteNotify") + public JSONObject deleteNotify(@RequestBody String mess){ + faceServer.deleteNotify(mess); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("code",0); + jsonObject.put("msg","OK"); + jsonObject.put("success",true); + return jsonObject; + } + + } -- Gitblit v1.9.3