| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | private final IApiMallOrderInfoService mallOrderInfoService; |
| | | |
| | | @ApiOperation(value = "addOrder", notes = "提交订单") |
| | | @ApiOperation(value = "提交订单", notes = "提交订单") |
| | | @PostMapping(value = "/addOrder") |
| | | public FebsResponse addOrder(@RequestBody List<AddOrderDto> list) { |
| | | public FebsResponse addOrder(@RequestBody AddOrderDto addOrderDto) { |
| | | String orderNo = mallOrderInfoService.createOrder(addOrderDto); |
| | | |
| | | // TODO 创建支付订单 |
| | | return new FebsResponse().success().message("创建订单成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "取消订单", notes = "取消订单") |
| | | @PostMapping(value = "/cancelOrder/{id}") |
| | | public FebsResponse cancelOrder(@PathVariable("id") Long id) { |
| | | return null; |
| | | } |
| | | } |