From c6f226f7f9f9aa46c27db28d6796cd15d101cfe9 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 25 May 2021 15:37:38 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
index 47b2944..cec320b 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
@@ -4,6 +4,7 @@
 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.OrderApealDto;
 import com.xcong.excoin.modules.otc.dto.OrderListDto;
 import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
 import com.xcong.excoin.modules.otc.service.OtcOrderService;
@@ -83,4 +84,17 @@
         otcOrderService.finishOrder(id);
         return Result.ok("操作成功");
     }
+
+    @ApiOperation(value = "取消订单")
+    @PostMapping(value = "/cancelUserOrder/{id}")
+    public Result cancelUserOrder(@PathVariable("id") Long id) {
+        otcOrderService.cancelOrder(id);
+        return Result.ok("操作成功");
+    }
+
+    @ApiOperation(value = "申诉")
+    @PostMapping(value = "/orderApeal")
+    public Result orderApeal(@RequestBody OrderApealDto orderApealDto) {
+        return otcOrderService.orderApeal(orderApealDto);
+    }
 }

--
Gitblit v1.9.1