From 112b6a2ca8a55f056cc259b6bd9ed554fcc263f7 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 31 Oct 2022 14:58:04 +0800
Subject: [PATCH] 20221021
---
src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java | 27 +++++++++++----------------
1 files changed, 11 insertions(+), 16 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
index e024e8d..6f7f712 100644
--- a/src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java
+++ b/src/main/java/cc/mrbird/febs/dapp/controller/BlockController.java
@@ -1,22 +1,17 @@
-package com.xcong.excoin.modules.blackchain.controller;
+package cc.mrbird.febs.dapp.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 cc.mrbird.febs.common.entity.FebsResponse;
+import cc.mrbird.febs.common.utils.RedisUtils;
+import cc.mrbird.febs.dapp.service.BlockSerive;
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;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Api(value = "链上钱包接口", tags = "链上钱包接口")
@@ -27,7 +22,7 @@
@Autowired
- RedisUtils redisUtils;
+ RedisUtils redisUtils;
@Autowired
BlockSerive blockSerive;
/**
@@ -40,8 +35,8 @@
@ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query")
})
@GetMapping(value = "/findBlockAddress")
- public Result findBlockAddress(String symbol) {
- return blockSerive.findBlockAddress(symbol);
+ public FebsResponse findBlockAddress(String symbol, String label) {
+ return blockSerive.findBlockAddress(symbol, label);
}
}
--
Gitblit v1.9.1