From 5723081b2da05257b254196d440e3f1f6d7a654b Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 03 Apr 2023 13:41:15 +0800 Subject: [PATCH] 设定时区,这样创建的时间就不会出现问题 --- src/main/java/cc/mrbird/febs/mall/controller/BlockController.java | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/BlockController.java b/src/main/java/cc/mrbird/febs/mall/controller/BlockController.java index 3c93eb5..4f0dbc7 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/BlockController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/BlockController.java @@ -2,6 +2,8 @@ import cc.mrbird.febs.common.entity.FebsResponse; import cc.mrbird.febs.common.utils.RedisUtils; +import cc.mrbird.febs.mall.dto.ApiChargeInfoDto; +import cc.mrbird.febs.mall.dto.ForgetPwdDto; import cc.mrbird.febs.mall.service.BlockSerive; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; @@ -9,9 +11,8 @@ 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; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; @Slf4j @Api(value = "链上钱包接口", tags = "链上钱包接口") @@ -19,8 +20,6 @@ @RequestMapping(value = "/api/block") public class BlockController { - - @Autowired RedisUtils redisUtils; @Autowired @@ -35,4 +34,16 @@ return blockSerive.findBlockAddress(symbol, label); } + @ApiOperation(value = "固定充值地址接口", notes = "固定充值地址接口") + @GetMapping(value = "/findAddress") + public FebsResponse findAddress() { + return blockSerive.findAddress(); + } + + @ApiOperation(value = "填写充值信息") + @PostMapping(value = "/setChargeInfo") + public FebsResponse setChargeInfo(@RequestBody @Validated ApiChargeInfoDto apiChargeInfoDto) { + return blockSerive.setChargeInfo(apiChargeInfoDto); + } + } -- Gitblit v1.9.1