1
xiaoyong931011
2023-02-01 cdb4f45b507e52f67c235b6d4b7307ec194f02a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package cc.mrbird.febs.mall.controller;
 
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;
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.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
 
@Slf4j
@Api(value = "链上钱包接口", tags = "链上钱包接口")
@RestController
@RequestMapping(value = "/api/block")
public class BlockController {
    
    @Autowired
    RedisUtils redisUtils;
    @Autowired
    BlockSerive blockSerive;
 
    @ApiOperation(value = "链上生成钱包地址接口", notes = "链上生成钱包地址接口")
    @ApiImplicitParams({
        @ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query")
    })
    @GetMapping(value = "/findBlockAddress")
    public FebsResponse findBlockAddress(String symbol, String label) {
        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);
    }
 
}