From 809b41916cbf53219aca69d94e45effae5ac160b Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 27 May 2021 10:16:51 +0800
Subject: [PATCH] 20210527 不显示合伙人
---
src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java | 96 +++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 90 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java b/src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java
index 9c5568f..65ba345 100644
--- a/src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java
+++ b/src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java
@@ -1,13 +1,9 @@
package com.xcong.excoin.modules.yunding.controller;
import com.xcong.excoin.common.response.Result;
-import com.xcong.excoin.modules.yunding.dto.PayProductDto;
-import com.xcong.excoin.modules.yunding.dto.YdOrderListDto;
-import com.xcong.excoin.modules.yunding.dto.YdProductListDto;
+import com.xcong.excoin.modules.yunding.dto.*;
import com.xcong.excoin.modules.yunding.service.YunDingService;
-import com.xcong.excoin.modules.yunding.vo.OrderAllInfoVo;
-import com.xcong.excoin.modules.yunding.vo.YdOrderVo;
-import com.xcong.excoin.modules.yunding.vo.YdProductVo;
+import com.xcong.excoin.modules.yunding.vo.*;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
@@ -28,6 +24,9 @@
* 全网数据
*/
@ApiOperation(value = "全网数据")
+ @ApiResponses({
+ @ApiResponse(code = 0, message = "success", response = YdBasicSettingVo.class)
+ })
@GetMapping(value = "/findAllInfo")
public Result findAllInfo() {
return yunDingService.findAllInfo();
@@ -53,6 +52,15 @@
public Result findProductInfoById(@ApiParam(name = "id", value = "产品ID", required = true, example = "1")
@RequestParam(value = "id") Long id) {
return yunDingService.findProductInfoById(id);
+ }
+
+ /**
+ * 获取XCH当前价
+ */
+ @ApiOperation(value = "获取XCH当前价")
+ @GetMapping(value = "/getXchPrice")
+ public Result getXchPrice() {
+ return yunDingService.getXchPrice();
}
/**
@@ -86,6 +94,19 @@
}
/**
+ * 订单详情
+ */
+ @ApiOperation(value = "订单详情")
+ @ApiResponses({
+ @ApiResponse(code = 0, message = "success", response = YdOrderVo.class)
+ })
+ @GetMapping(value = "/getOrderInfo")
+ public Result getOrderInfo(@ApiParam(name = "id", value = "订单ID", required = true, example = "1")
+ @RequestParam(value = "id") Long id) {
+ return yunDingService.getOrderInfo(id);
+ }
+
+ /**
*订单头部数据
*/
@ApiOperation(value = "订单头部数据")
@@ -97,6 +118,69 @@
return yunDingService.findOrderAllInfo();
}
+ /**
+ * 转换成USDT
+ */
+ @ApiOperation(value = "获取转换成USDT信息")
+ @ApiResponses({
+ @ApiResponse(code = 0, message = "success", response = ChangeVo.class)
+ })
+ @GetMapping(value = "/changeUsdt")
+ public Result changeUsdt() {
+ return yunDingService.changeUsdt();
+ }
+
+ /**
+ * 确认转换成USDT
+ */
+ @ApiOperation(value = "确认转换成USDT")
+ @PostMapping(value = "/insureChangeUsdt")
+ public Result insureChangeUsdt(@RequestBody @Validated InsureChangeUsdtDto insureChangeUsdtdto){
+ return yunDingService.insureChangeUsdt(insureChangeUsdtdto);
+ }
+
+ /**
+ * 获取代理级别列表
+ */
+ @ApiOperation(value = "获取代理级别列表")
+ @ApiResponses({
+ @ApiResponse(code = 0, message = "success", response = AgentVo.class)
+ })
+ @PostMapping(value = "/getAgentList")
+ public Result getAgentList(@RequestBody @Validated YdAgentDto ydAgentDto) {
+ return yunDingService.getAgentList(ydAgentDto);
+ }
+
+ /**
+ * 购买代理级别
+ */
+ @ApiOperation(value = "购买代理级别")
+ @PostMapping(value = "/bugAgentLevel")
+ public Result bugAgentLevel(@RequestBody @Validated BugAgentLeveldto bugAgentLeveldto){
+ return yunDingService.bugAgentLevel(bugAgentLeveldto);
+ }
+
+ /**
+ * 我的团队信息
+ */
+ @ApiOperation(value = "我的团队信息")
+ @ApiResponses({
+ @ApiResponse(code = 0, message = "success", response = TeamVo.class)
+ })
+ @PostMapping(value = "/getTeamList")
+ public Result getTeamList(@RequestBody @Validated TeamInfoDto teamInfoDto) {
+ return yunDingService.getTeamList(teamInfoDto);
+ }
+
+
+
+
+
+
+
+
+
+
}
--
Gitblit v1.9.1