From 62d7a119eff0f11e4cf3f98249e1b8d978507944 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 24 Nov 2021 15:19:57 +0800
Subject: [PATCH] Merge branch 'fish' of http://120.27.238.55:7000/r/exchange into fish

---
 src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java |   69 ++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java b/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java
new file mode 100644
index 0000000..84c8a7a
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java
@@ -0,0 +1,69 @@
+package com.xcong.excoin.modules.fish.controller;
+
+import com.xcong.excoin.common.response.Result;
+import com.xcong.excoin.modules.coin.parameter.vo.OrderWalletCoinDealVo;
+import com.xcong.excoin.modules.fish.dto.CannonExchangeDto;
+import com.xcong.excoin.modules.fish.dto.CoinGoldExchangeDto;
+import com.xcong.excoin.modules.fish.dto.GetCannonsDto;
+import com.xcong.excoin.modules.fish.dto.GoldExchangeDto;
+import com.xcong.excoin.modules.fish.service.MemberCannonService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@Slf4j
+@Api(value = "MemberCannonController", tags = "炮台接口类")
+@RestController
+@RequestMapping(value = "/api/account")
+public class MemberCannonController {
+
+    @Resource
+    private MemberCannonService memberCannonService;
+
+    /**
+     * 代币金币互转
+     */
+    @ApiOperation(value = "代币金币互转")
+    @PostMapping(value = "/coinGoldExchange")
+    public Result coinGoldExchange(@RequestBody CoinGoldExchangeDto coinGoldExchangeDto) {
+        return memberCannonService.coinGoldExchange(coinGoldExchangeDto);
+    }
+
+    /**
+     * USDT购买金币
+     */
+    @ApiOperation(value = "USDT购买金币")
+    @PostMapping(value = "/goldExchange")
+    public Result goldExchange(@RequestBody GoldExchangeDto goldExchangeDto) {
+        return memberCannonService.goldExchange(goldExchangeDto);
+    }
+
+    /**
+     * 获取大炮列表
+     */
+    @ApiOperation(value = "获取大炮列表")
+    @ApiResponses({@ApiResponse( code = 200, message = "success", response = OrderWalletCoinDealVo.class)})
+    @PostMapping(value = "/getCannons")
+    public Result getCannons(@RequestBody GetCannonsDto getCannonsDto) {
+        return memberCannonService.getCannons(getCannonsDto);
+    }
+
+    /**
+     *兑换大炮
+     */
+    @ApiOperation(value = "兑换大炮")
+    @PostMapping(value = "/cannonExchange")
+    public Result cannonExchange(@RequestBody CannonExchangeDto cannonExchangeDto) {
+        return memberCannonService.cannonExchange(cannonExchangeDto);
+    }
+
+
+}

--
Gitblit v1.9.1