上传人脸接口
This commit is contained in:
parent
2b1249a971
commit
a52ed369b5
|
|
@ -41,14 +41,14 @@ public class UserFaceController extends BaseController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IUserFaceService UserFaceService;
|
private IUserFaceService UserFaceService;
|
||||||
|
|
||||||
@ApiOperation("小程序保存人脸图片")
|
@ApiOperation("保存人脸图片")
|
||||||
@PostMapping({"/uploadPhotoForApp"})
|
@PostMapping({"/uploadUserFace"})
|
||||||
@RequiresGuest
|
@RequiresGuest
|
||||||
public AjaxResult uploadPhotoGenCodeForApp(@RequestBody @Valid SysUser sysUser) {
|
public AjaxResult uploadUserFace(@RequestBody @Valid SysUser sysUser) {
|
||||||
UserFace dto = new UserFace();
|
UserFace dto = new UserFace();
|
||||||
dto.setUserId(sysUser.getUserId());
|
dto.setUserId(sysUser.getUserId());
|
||||||
dto.setPhotoUrl(sysUser.getPhotoUrl());
|
dto.setPhotoUrl(sysUser.getPhotoUrl());
|
||||||
return UserFaceService.uploadPhotoGenCodeForApp(dto);
|
return UserFaceService.uploadUserFace(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,5 @@ public interface IUserFaceService {
|
||||||
* @param dto 人员生物识别特征主键
|
* @param dto 人员生物识别特征主键
|
||||||
* @return 人员生物识别特征
|
* @return 人员生物识别特征
|
||||||
*/
|
*/
|
||||||
AjaxResult uploadPhotoGenCodeForApp(@Valid UserFace dto);
|
AjaxResult uploadUserFace(@Valid UserFace dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ public class UserFaceServiceImpl implements IUserFaceService {
|
||||||
* @return 人员生物识别特征
|
* @return 人员生物识别特征
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult uploadPhotoGenCodeForApp(UserFace dto) {
|
public AjaxResult uploadUserFace(UserFace dto) {
|
||||||
if (ObjectUtil.isNull(dto)) {
|
if (ObjectUtil.isNull(dto)) {
|
||||||
throw new ServiceException("参数为空!");
|
throw new ServiceException("参数为空!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue