gao
2020-05-26 2f01e509236aa3ff895a0f9bb87b301049b42294
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
package com.xcong.excoin.modules.platform.controller;
 
import javax.annotation.Resource;
 
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
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.platform.service.PlatformCnyUsdtExchangeService;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
 
@RestController
@Slf4j
@RequestMapping(value = "/api/exchange")
@Api(value = "PlatformCnyUsdtExchangeController", tags = "平台Cny|Usdt兑换类")
public class PlatformCnyUsdtExchangeController {
    
    @Resource
    PlatformCnyUsdtExchangeService platformCnyUsdtExchangeService;
    
    @ApiOperation(value = "findUsdtCnyExchange", notes = "Cny|Usdt兑换")
    @GetMapping(value = "/findUsdtCnyExchange")
    public Result findUsdtCnyExchange(@ApiParam(name = "type", value = "类型", type="string", required=true) @RequestParam("type") String type) {
        log.info("type值----->{}", type);
        return platformCnyUsdtExchangeService.findUsdtCnyExchange(type);
    }
    
}