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.PlatformBannerService;
|
import com.xcong.excoin.modules.platform.service.PlatformNoticeService;
|
import com.xcong.excoin.modules.platform.service.PlatformCnyUsdtExchangeService;
|
import com.xcong.excoin.modules.platform.service.PlatformPaymentMethodService;
|
|
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 = "PlatformController", tags = "平台系统设置类")
|
public class PlatformController {
|
|
@Resource
|
PlatformCnyUsdtExchangeService platformCnyUsdtExchangeService;
|
@Resource
|
PlatformPaymentMethodService platformPaymentMethodService;
|
|
@Resource
|
PlatformBannerService platformBannerService;
|
|
@Resource
|
PlatformNoticeService PlatformNoticeService;
|
|
|
@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);
|
}
|
|
@ApiOperation(value = "findAllPaymentMethod", notes = "查询平台收款方式")
|
@GetMapping(value = "/findAllPaymentMethod")
|
public Result findAllPaymentMethod() {
|
return platformPaymentMethodService.findAll();
|
}
|
|
@ApiOperation(value = "首页轮播图", notes = "首页轮播图")
|
@GetMapping(value = "/findPlatformBannerList")
|
public Result findPlatformBannerList() {
|
return platformBannerService.findAll();
|
}
|
|
@ApiOperation(value = "首页公告查询", notes = "首页公告查询")
|
@GetMapping(value = "/findPlatformNoticeList")
|
public Result findPlatformNoticeList() {
|
return PlatformNoticeService.findPlatformNoticeList();
|
}
|
|
}
|