From 0abd80878ee9045d5317a2dbeff6c20d2dfdabc0 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 14 May 2021 15:07:32 +0800
Subject: [PATCH] Merge branch 'yunding' of http://120.27.238.55:7000/r/exchange into yunding

---
 src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 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 f996c80..80abc44 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,10 +1,7 @@
 package com.xcong.excoin.modules.yunding.controller;
 
 import com.xcong.excoin.common.response.Result;
-import com.xcong.excoin.modules.yunding.dto.InsureChangeUsdtDto;
-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.*;
 import io.swagger.annotations.*;
@@ -55,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();
     }
 
     /**
@@ -133,5 +139,28 @@
         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);
+    }
+
+
+
 
 }

--
Gitblit v1.9.1