From 97bb5d54315b91b851d6934fb2bb98b80b7dc4f1 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sat, 15 May 2021 16:20:04 +0800
Subject: [PATCH] 20210514 云顶
---
src/main/java/com/xcong/excoin/modules/yunding/controller/BasicSettingController.java | 39 ++++++++++++++++++++++++++++++++++++---
1 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/yunding/controller/BasicSettingController.java b/src/main/java/com/xcong/excoin/modules/yunding/controller/BasicSettingController.java
index 9247031..f470794 100644
--- a/src/main/java/com/xcong/excoin/modules/yunding/controller/BasicSettingController.java
+++ b/src/main/java/com/xcong/excoin/modules/yunding/controller/BasicSettingController.java
@@ -1,8 +1,10 @@
package com.xcong.excoin.modules.yunding.controller;
+import com.xcong.excoin.common.annotation.ControllerEndpoint;
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.helpCenter.entity.HelpCenterArticleEntity;
import com.xcong.excoin.modules.member.entity.MemberEntity;
import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
import com.xcong.excoin.modules.yunding.entity.YdProductEntity;
@@ -10,10 +12,10 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+import javax.validation.Valid;
+import javax.validation.constraints.NotNull;
import java.lang.reflect.Member;
import java.util.Map;
@@ -101,4 +103,35 @@
return new FebsResponse().success().data(dataTable);
}
+ /**
+ * 合伙人设置--同意
+ * @param id
+ * @return
+ */
+ @GetMapping("addIsTraderOn/{id}")
+ @ControllerEndpoint(operation = "合伙人设置--同意", exceptionMessage = "操作失败")
+ public FebsResponse addIsTraderOn(@NotNull(message = "{required}") @PathVariable Long id) {
+ return basicSettingService.addIsTraderOn(id);
+ }
+ /**
+ * 合伙人设置--取消
+ * @param id
+ * @return
+ */
+ @GetMapping("delIsTraderOn/{id}")
+ @ControllerEndpoint(operation = "合伙人设置--取消", exceptionMessage = "操作失败")
+ public FebsResponse delIsTraderOn(@NotNull(message = "{required}") @PathVariable Long id) {
+ return basicSettingService.delIsTraderOn(id);
+ }
+
+ /**
+ * 产品---更新
+ * @return
+ */
+ @PostMapping("ydProductUpdateOn")
+ @ControllerEndpoint(operation = "产品---更新", exceptionMessage = "设置失败")
+ public FebsResponse ydProductUpdateOn(@Valid YdProductEntity ydProductEntity) {
+ return basicSettingService.ydProductUpdateOn(ydProductEntity);
+ }
+
}
--
Gitblit v1.9.1