From dfbca56dfc518b791b80516759d3d904a492d501 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 03 Aug 2023 15:57:11 +0800
Subject: [PATCH] 数据修改
---
src/main/java/cc/mrbird/febs/dapp/controller/ApiCommonController.java | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/dapp/controller/ApiCommonController.java b/src/main/java/cc/mrbird/febs/dapp/controller/ApiCommonController.java
index 5def91a..fb031fe 100644
--- a/src/main/java/cc/mrbird/febs/dapp/controller/ApiCommonController.java
+++ b/src/main/java/cc/mrbird/febs/dapp/controller/ApiCommonController.java
@@ -1,6 +1,7 @@
package cc.mrbird.febs.dapp.controller;
import cc.mrbird.febs.common.annotation.EncryptEnable;
+import cc.mrbird.febs.common.contants.AppContants;
import cc.mrbird.febs.common.entity.FebsResponse;
import cc.mrbird.febs.dapp.dto.ApproveDto;
import cc.mrbird.febs.dapp.dto.ConnectDto;
@@ -11,12 +12,14 @@
import cc.mrbird.febs.dapp.service.DappSimulateDataService;
import cc.mrbird.febs.dapp.service.DappSystemService;
import cc.mrbird.febs.dapp.vo.SimulateDataVo;
+import cc.mrbird.febs.rabbit.producer.ChainProducer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
@@ -34,6 +37,8 @@
private final DappMemberService dappMemberService;
private final DappSystemService dappSystemService;
+ @Autowired
+ private ChainProducer chainProducer;
@ApiOperation(value = "地址是否存在", notes = "地址是否存在")
@GetMapping(value = "/exist/{address}")
@@ -51,6 +56,13 @@
return new FebsResponse().success();
}
+// @ApiOperation(value = "根据flowID,重新消费", notes = "根据flowID,重新消费")
+// @GetMapping(value = "/sendFlow/{flowId}")
+// public FebsResponse sendFlow(@PathVariable("flowId") String flowId) {
+// chainProducer.sendContractAnDao(Long.parseLong(flowId));
+// return new FebsResponse().success();
+// }
+
// @ApiOperation(value = "头部数据", notes = "头部数据")
// @GetMapping(value = "/totalIncome")
// public FebsResponse totalIncome() {
--
Gitblit v1.9.1