| | |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.AddOrderDto; |
| | | import cc.mrbird.febs.mall.dto.PayOrderDto; |
| | | import cc.mrbird.febs.mall.service.IApiMallOrderInfoService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "支付订单", notes = "支付订单") |
| | | @PostMapping(value = "/payOrder") |
| | | public FebsResponse payOrder(@RequestBody PayOrderDto payOrderDto) { |
| | | String result = mallOrderInfoService.payOrder(payOrderDto); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("orderNo", result); |
| | | map.put("type", payOrderDto.getType()); |
| | | return new FebsResponse().success().data(map).message("支付成功"); |
| | | } |
| | | |
| | | } |