From c7d94b1950e630b0fef5ea4c2cb2a6af92c8d140 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 12 Jun 2020 16:49:46 +0800 Subject: [PATCH] 20200612 代码提交 --- src/main/java/com/xcong/excoin/modules/platform/controller/PlatformController.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/platform/controller/PlatformController.java b/src/main/java/com/xcong/excoin/modules/platform/controller/PlatformController.java index 767c49f..ccd9d98 100644 --- a/src/main/java/com/xcong/excoin/modules/platform/controller/PlatformController.java +++ b/src/main/java/com/xcong/excoin/modules/platform/controller/PlatformController.java @@ -8,6 +8,8 @@ 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; @@ -27,6 +29,13 @@ @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) { @@ -40,4 +49,16 @@ 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(); + } + } -- Gitblit v1.9.1