From d4f9d5923aac90d2ae61032475da9fa2a2d1ee1e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sat, 22 Oct 2022 09:43:39 +0800
Subject: [PATCH] fix
---
src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java b/src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java
new file mode 100644
index 0000000..e024e8d
--- /dev/null
+++ b/src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java
@@ -0,0 +1,47 @@
+package com.xcong.excoin.modules.blackchain.controller;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.xcong.excoin.common.response.Result;
+import com.xcong.excoin.modules.blackchain.service.BlockSerive;
+import com.xcong.excoin.utils.RedisUtils;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+
+@Slf4j
+@Api(value = "链上钱包接口", tags = "链上钱包接口")
+@RestController
+@RequestMapping(value = "/api/block")
+public class BlockController {
+
+
+
+ @Autowired
+ RedisUtils redisUtils;
+ @Autowired
+ BlockSerive blockSerive;
+ /**
+ * BTC
+ * @param token
+ * @return
+ */
+ @ApiOperation(value = "链上生成钱包地址接口", notes = "链上生成钱包地址接口")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query")
+ })
+ @GetMapping(value = "/findBlockAddress")
+ public Result findBlockAddress(String symbol) {
+ return blockSerive.findBlockAddress(symbol);
+ }
+
+}
--
Gitblit v1.9.1