|
@@ -26,23 +26,25 @@ public class FaceController extends BaseController {
|
26
|
26
|
@ApiOperation(value = "添加人脸图片", notes = "添加人脸图片")
|
27
|
27
|
@ApiImplicitParams({
|
28
|
28
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
|
29
|
|
- @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
|
|
29
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
|
|
30
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "verifyID",value = "审核id")
|
30
|
31
|
})
|
31
|
|
-
|
|
32
|
+
|
32
|
33
|
@RequestMapping(value = "/addFace",method = RequestMethod.POST)
|
33
|
34
|
public Object getTaFace(HttpSession session,
|
34
|
35
|
@ApiParam(value = "file" ,required = true) MultipartFile uploadFile,
|
35
|
|
- @RequestParam(required = false) Integer otherUserId){
|
|
36
|
+ @RequestParam(required = false) Integer otherUserId,
|
|
37
|
+ @RequestParam(required = false) Integer verifyID){
|
36
|
38
|
ResponseBean responseBean = new ResponseBean();
|
37
|
39
|
UserElement userElement = getUserElement(session);
|
38
|
|
- responseBean = faceServicel.addFace(userElement ,uploadFile,otherUserId);
|
|
40
|
+ responseBean = faceServicel.addFace(userElement ,uploadFile,otherUserId,verifyID);
|
39
|
41
|
return responseBean;
|
40
|
42
|
}
|
41
|
43
|
|
42
|
44
|
@ApiOperation(value = "修改人脸图片", notes = "修改人脸图片")
|
43
|
45
|
@ApiImplicitParams({
|
44
|
46
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
|
45
|
|
- @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
|
|
47
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
|
46
|
48
|
})
|
47
|
49
|
@RequestMapping(value = "/upDateFace",method = RequestMethod.POST)
|
48
|
50
|
public Object upDateTaFace(HttpSession session,
|
|
@@ -58,7 +60,7 @@ public class FaceController extends BaseController {
|
58
|
60
|
@ApiOperation(value = "获取当前已录入人脸信息", notes = "获取当前已录入人脸信息")
|
59
|
61
|
@ApiImplicitParams({
|
60
|
62
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
|
61
|
|
- @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
|
|
63
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
|
62
|
64
|
})
|
63
|
65
|
@RequestMapping(value = "/getUserIdFace",method = RequestMethod.GET)
|
64
|
66
|
public Object getTaFaceByUserId(HttpSession session, @RequestParam(required = false) Integer otherUserId){
|
|
@@ -66,5 +68,18 @@ public class FaceController extends BaseController {
|
66
|
68
|
ResponseBean responseBean = faceServicel.getTaFaceByUserId(userElement,otherUserId);
|
67
|
69
|
return responseBean;
|
68
|
70
|
}
|
|
71
|
+ @ApiOperation(value = "删除当前人脸信息", notes = "删除当前人脸信息")
|
|
72
|
+ @ApiImplicitParams({
|
|
73
|
+ @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
|
|
74
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
|
|
75
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "verifyID",value = "审核id")
|
|
76
|
+ })
|
|
77
|
+ @RequestMapping(value = "/deleteFace",method = RequestMethod.GET)
|
|
78
|
+ public Object deleteFace(HttpSession session, @RequestParam(required = false) Integer otherUserId,
|
|
79
|
+ @RequestParam(required = false) Integer verifyID){
|
|
80
|
+ UserElement userElement = getUserElement(session);
|
|
81
|
+ ResponseBean responseBean = faceServicel.deleteFace(userElement,otherUserId,verifyID);
|
|
82
|
+ return responseBean;
|
|
83
|
+ }
|
69
|
84
|
|
70
|
85
|
}
|