You've already forked FrameTour-BE
添加oss人脸上传逻辑
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
package com.ycwl.basic.controller.mobile;
|
||||
|
||||
import com.ycwl.basic.service.pc.FaceService;
|
||||
import com.ycwl.basic.utils.ApiResponse;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* @Author:longbinbin
|
||||
@ -16,19 +19,17 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags = "用户人脸相关接口")
|
||||
public class AppFaceController {
|
||||
|
||||
@Autowired
|
||||
private FaceService faceService;
|
||||
|
||||
@ApiOperation("人脸有效性校验")
|
||||
@PostMapping("/checkFaceValidity")
|
||||
public ApiResponse checkFaceValidity() {
|
||||
//TODO 人脸有效性校验逻辑
|
||||
return ApiResponse.success("");
|
||||
@ApiOperation("人脸照片上传")
|
||||
@PostMapping("/faceUPload")
|
||||
public ApiResponse faceUPload(MultipartFile file) {
|
||||
//1、上传人脸照片
|
||||
//2、人脸照片有效性校验
|
||||
//3、校验失败,删除,提示重新上传
|
||||
//4、校验成功,保存用户人脸信息,将访问人脸照片访问地址响应给前端
|
||||
|
||||
return faceService.faceUPload(file);
|
||||
}
|
||||
|
||||
@ApiOperation("人脸上传")
|
||||
@PostMapping("/saveFace")
|
||||
public ApiResponse saveFace() {
|
||||
//TODO 保存人脸逻辑
|
||||
return ApiResponse.success("");
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user