You've already forked FrameTour-BE
订单类型由订单明细移动至订单本体中
This commit is contained in:
@ -7,6 +7,7 @@ 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.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@ -23,14 +24,22 @@ AppFaceController {
|
||||
@Autowired
|
||||
private FaceService faceService;
|
||||
|
||||
/**
|
||||
* 1、上传人脸照片
|
||||
* 2、人脸照片有效性校验
|
||||
* 3、校验失败,删除,提示重新上传
|
||||
* 4、校验成功,保存用户人脸信息,将访问人脸照片访问地址响应给前端
|
||||
* @param file
|
||||
* @param scenicId
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("人脸照片上传")
|
||||
@PostMapping("/faceUPload")
|
||||
public ApiResponse faceUPload(MultipartFile file) {
|
||||
//1、上传人脸照片
|
||||
//2、人脸照片有效性校验
|
||||
//3、校验失败,删除,提示重新上传
|
||||
//4、校验成功,保存用户人脸信息,将访问人脸照片访问地址响应给前端
|
||||
public ApiResponse faceUPload(@RequestParam("file")MultipartFile file, @RequestParam("scenicId") Long scenicId) {
|
||||
|
||||
return faceService.faceUPload(file);
|
||||
return faceService.faceUPload(file,scenicId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -29,7 +29,6 @@ public class AppOrderController {
|
||||
|
||||
@ApiOperation("用户端订单列表查询")
|
||||
@PostMapping("/page")
|
||||
@IgnoreToken
|
||||
public ApiResponse<PageInfo<OrderAppRespVO>> pageQuery(@RequestBody OrderReqQuery orderReqQuery) {
|
||||
String userId = BaseContextHandler.getUserId();
|
||||
orderReqQuery.setMemberId(Long.valueOf(userId));
|
||||
@ -38,7 +37,6 @@ public class AppOrderController {
|
||||
|
||||
@ApiOperation("用户端订单详情查询")
|
||||
@GetMapping("getOrderDetails/{id}")
|
||||
@IgnoreToken
|
||||
public ApiResponse<OrderAppRespVO> getOrderDetails(@PathVariable("id") Long id) {
|
||||
return orderService.appDetail(id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user