From 420b90cd27ea932f64b25f3394967fd532cca186 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 12 Aug 2020 17:57:02 +0800
Subject: [PATCH] 20200812  帮助中心

---
 src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
index 5a8bc0d..621939d 100644
--- a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
+++ b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
@@ -3,9 +3,11 @@
 import java.util.Map;
 
 import javax.validation.Valid;
+import javax.validation.constraints.NotNull;
 
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -14,6 +16,7 @@
 import com.xcong.excoin.common.controller.BaseController;
 import com.xcong.excoin.common.entity.FebsResponse;
 import com.xcong.excoin.common.entity.QueryRequest;
+import com.xcong.excoin.modules.documentary.dto.FollowTraderInfoDto;
 import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity;
 import com.xcong.excoin.modules.documentary.service.DocumentaryService;
 import com.xcong.excoin.modules.member.dto.MemberDetailConfirmDto;
@@ -45,9 +48,31 @@
      * @return
      */
     @PostMapping("traderConfirm")
-    @ControllerEndpoint(operation = "实名认证---确认", exceptionMessage = "认证失败")
-    public FebsResponse traderConfirm(@Valid FollowTraderInfoEntity followTraderInfoEntity) {
-        return documentaryService.traderConfirm(followTraderInfoEntity);
+    @ControllerEndpoint(operation = "交易员申请---确认", exceptionMessage = "认证失败")
+    public FebsResponse traderConfirm(@Valid FollowTraderInfoDto followTraderInfoDto) {
+        return documentaryService.traderConfirm(followTraderInfoDto);
+    }
+    
+    /**
+     * 踢出交易员
+     * @param id
+     * @return
+     */
+    @GetMapping("traderGetOut/{id}")
+    @ControllerEndpoint(operation = "踢出交易员", exceptionMessage = "踢出失败")
+    public FebsResponse traderGetOut(@NotNull(message = "{required}") @PathVariable Long id) {
+        return documentaryService.traderGetOut(id);
+    }
+    
+    /**
+     * 设置成【满员】状态
+     * @param id
+     * @return
+     */
+    @GetMapping("traderGetFull/{id}")
+    @ControllerEndpoint(operation = "设置成【满员】状态", exceptionMessage = "设置失败")
+    public FebsResponse traderGetFull(@NotNull(message = "{required}") @PathVariable Long id) {
+    	return documentaryService.traderGetFull(id);
     }
 
 }

--
Gitblit v1.9.1