| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.modules.otc.dto.HasPayDto; |
| | | import com.xcong.excoin.modules.otc.dto.OrderAddDto; |
| | | import com.xcong.excoin.modules.otc.dto.OrderListDto; |
| | | import com.xcong.excoin.modules.otc.service.OtcOrderService; |
| | | import com.xcong.excoin.modules.otc.vo.BuyOrderDetailVo; |
| | | import com.xcong.excoin.modules.otc.vo.OrderListVo; |
| | | import com.xcong.excoin.modules.otc.vo.SaleOrderDetailVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | return Result.ok(page.getRecords()); |
| | | } |
| | | |
| | | @ApiOperation(value = "订单详情") |
| | | @GetMapping(value = "/orderDetail/{id}") |
| | | public Result orderDetail(@PathVariable("id") Long id) { |
| | | return null; |
| | | @ApiOperation(value = "买单 - 订单详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = BuyOrderDetailVo.class) |
| | | }) |
| | | @GetMapping(value = "/buyOrderDetail/{id}") |
| | | public Result buyOrderDetail(@PathVariable("id") Long id) { |
| | | return otcOrderService.findBuyOrderDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "卖单 - 订单详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = SaleOrderDetailVo.class) |
| | | }) |
| | | @GetMapping(value = "/saleOrderDetail/{id}") |
| | | public Result saleOrderDetail(@PathVariable("id") Long id) { |
| | | return otcOrderService.findSaleOrderDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "已付款,请放币") |
| | | @PostMapping(value = "/hasPay/{id}") |
| | | public Result hasPay(@PathVariable("id") Long id) { |
| | | otcOrderService.hasPay(id); |
| | | @PostMapping(value = "/hasPay") |
| | | public Result hasPay(@RequestBody HasPayDto hasPayDto) { |
| | | otcOrderService.hasPay(hasPayDto); |
| | | return Result.ok("操作成功"); |
| | | } |
| | | |