From cf200a1f92c01ba22c326c49391f748ffb006910 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 05 Jul 2021 17:28:35 +0800
Subject: [PATCH] 20210617 开售开关
---
src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java | 45 +++++++++++++++++++++++++++++++++++++++++----
1 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java
index 7892228..4335613 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java
@@ -6,12 +6,10 @@
import com.xcong.excoin.common.entity.QueryRequest;
import com.xcong.excoin.modules.member.entity.MemberAccountMoneyChangeEntity;
import com.xcong.excoin.modules.member.entity.MemberEntity;
-import com.xcong.excoin.modules.otc.entity.OtcEntrustOrderEntity;
-import com.xcong.excoin.modules.otc.entity.OtcMarketBussinessEntity;
-import com.xcong.excoin.modules.otc.entity.OtcOrderAppealEntity;
-import com.xcong.excoin.modules.otc.entity.OtcOrderEntity;
+import com.xcong.excoin.modules.otc.entity.*;
import com.xcong.excoin.modules.otc.service.OtcService;
import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -19,6 +17,7 @@
import javax.validation.constraints.NotNull;
import java.util.Map;
+@Slf4j
@Validated
@RestController
@RequiredArgsConstructor
@@ -95,6 +94,16 @@
}
/**
+ *委托单--更新
+ * @return
+ */
+ @PostMapping("otcEntrustConfirm")
+ @ControllerEndpoint(operation = "委托单--更新", exceptionMessage = "失败")
+ public FebsResponse otcEntrustConfirm(@Valid OtcEntrustOrderEntity otcEntrustOrderEntity) {
+ return otcService.otcEntrustConfirm(otcEntrustOrderEntity);
+ }
+
+ /**
* 订单列表
*/
@GetMapping("otcOrderList")
@@ -123,4 +132,32 @@
return otcService.otcHuiKuan(otcMarketBussinessEntity);
}
+ /**
+ * 设置列表
+ */
+ @GetMapping("otcSettingList")
+ public FebsResponse otcSettingList(OtcSettingEntity otcSettingEntity, QueryRequest request) {
+ Map<String, Object> data = getDataTable(otcService.otcSettingList(otcSettingEntity, request));
+ return new FebsResponse().success().data(data);
+ }
+ /**
+ *设置列表--更新
+ * @return
+ */
+ @PostMapping("updateOtcSetting")
+ @ControllerEndpoint(operation = "设置列表--更新", exceptionMessage = "失败")
+ public FebsResponse updateOtcSetting(@Valid OtcSettingEntity otcSettingEntity) {
+ return otcService.updateOtcSetting(otcSettingEntity);
+ }
+
+ /**
+ * 放币
+ */
+ @PostMapping("/reduceCoin/{id}")
+ @ControllerEndpoint(operation = "放币", exceptionMessage = "失败")
+ public FebsResponse reduceCoin(@PathVariable("id") Long id) {
+ otcService.reduceCoin(id);
+ return new FebsResponse().success();
+ }
+
}
--
Gitblit v1.9.1