张晓波
2023-10-19 2a967f10660754f68cb6391cd807936c51e5f887
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;
@@ -58,4 +60,30 @@
        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(){
        faceServer.deleteNotify();
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("code",0);
        jsonObject.put("msg","OK");
        jsonObject.put("success",true);
        return jsonObject;
    }
}