phis-feign/src/main/java/com/hz/his/dto/face/FaceLibDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/face/SPhipFaceLibService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/face/FaceLibDto.java
New file @@ -0,0 +1,28 @@ package com.hz.his.dto.face; import lombok.Data; /** * @USER: fhx * @DATE: 2024/4/17 **/ @Data public class FaceLibDto { /** 人员ID(User/Employee) */ private String personId; /** 人员名称 */ private String personName; /** 人员类型 */ private String personType; /** 图片路径 */ private String imgUrl; /** 备注 */ private String remark; /** 性别:0未知1男2女 */ private Integer gender; /** 是否删除旧的人脸记录(0否1是) */ private Integer isDelOld = 0; } phis-feign/src/main/java/com/hz/his/feign/service/platform/face/SPhipFaceLibService.java
New file @@ -0,0 +1,26 @@ package com.hz.his.feign.service.platform.face; import com.hx.resultTool.Result; import com.hz.his.dto.face.FaceLibDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; /** * 人脸库service * @USER: fhx * @DATE: 2023/8/2 **/ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-face-lib") public interface SPhipFaceLibService { /** 更新人员人脸库 */ @PostMapping(value = "/face/lib/update/person/face/lib") Result userFddAuthData(@RequestBody FaceLibDto dto); /** 人脸搜索 - 文件 */ @RequestMapping(value="/face/lib/face/search/to/file",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) Result faceSearchToFile(@RequestPart("file") MultipartFile file); }