From f8c1d9838e3c337d0dc9f406fb1b2b54e2be06b5 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 13 May 2021 11:36:22 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java | 52 +++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 41 insertions(+), 11 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 f620c0b..b6da2c8 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,9 +1,7 @@
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.*;
import io.swagger.annotations.*;
@@ -114,14 +112,46 @@
/**
* 转换成USDT
*/
-// @ApiOperation(value = "转换成USDT")
-// @ApiResponses({
-// @ApiResponse(code = 0, message = "success", response = changeVo.class)
-// })
-// @GetMapping(value = "/findOrderAllInfo")
-// public Result findOrderAllInfo() {
-// return yunDingService.findOrderAllInfo();
-// }
+ @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);
+ }
+
+
}
--
Gitblit v1.9.1