| | |
| | | import cc.mrbird.febs.mall.dto.clothes.*; |
| | | import cc.mrbird.febs.mall.service.ApiClothesOrderService; |
| | | import cc.mrbird.febs.mall.service.ApiClothesService; |
| | | import cc.mrbird.febs.mall.vo.OrderDetailVo; |
| | | import cc.mrbird.febs.mall.vo.OrderListVo; |
| | | import cc.mrbird.febs.mall.vo.clothes.*; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @ApiResponse(code = 200, message = "success", response = ApiClothesOrderPayVo.class) |
| | | }) |
| | | @PostMapping(value = "/payOrder") |
| | | public FebsResponse payOrder(@RequestBody ApiClothesOrderPayDto dto) { |
| | | public FebsResponse payOrder(@RequestBody @Validated ApiClothesOrderPayDto dto) { |
| | | |
| | | return apiClothesOrderService.payOrder(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "订单列表", notes = "订单列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiClothesOrderListVo.class) |
| | | }) |
| | | @PostMapping(value = "/orderList") |
| | | public FebsResponse orderList(@RequestBody @Validated ApiClothesOrderListVoDto dto) { |
| | | |
| | | return apiClothesOrderService.findOrderList(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "订单详情", notes = "订单详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiClothesOrderListInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/orderDetails/{id}") |
| | | public FebsResponse orderDetails(@PathVariable("id") Long id) { |
| | | |
| | | return apiClothesOrderService.orderDetails(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "确认收货", notes = "确认收货") |
| | | @PostMapping(value = "/confirm/{id}") |
| | | public FebsResponse confirm(@PathVariable("id") Long id) { |
| | | return apiClothesOrderService.confirmOrder(id); |
| | | } |
| | | |
| | | |
| | | } |