From 35d0c67bb3391d69a8333e5fad664a88a8ccfd0e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 24 Nov 2021 18:00:40 +0800 Subject: [PATCH] 20211124 fish --- src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java b/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java index 4feb965..822a233 100644 --- a/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java +++ b/src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java @@ -3,11 +3,9 @@ import com.xcong.excoin.common.response.Result; import com.xcong.excoin.modules.coin.parameter.vo.MemberWalletAgentInfoVo; import com.xcong.excoin.modules.coin.parameter.vo.OrderWalletCoinDealVo; -import com.xcong.excoin.modules.fish.dto.CannonExchangeDto; -import com.xcong.excoin.modules.fish.dto.CoinGoldExchangeDto; -import com.xcong.excoin.modules.fish.dto.GetCannonsDto; -import com.xcong.excoin.modules.fish.dto.GoldExchangeDto; +import com.xcong.excoin.modules.fish.dto.*; import com.xcong.excoin.modules.fish.service.MemberCannonService; +import com.xcong.excoin.modules.fish.vo.AccountAvaBanlaceVo; import com.xcong.excoin.modules.fish.vo.CannonSettingVo; import com.xcong.excoin.modules.fish.vo.GoldAccountVo; import com.xcong.excoin.modules.fish.vo.OwnCannonVo; @@ -28,6 +26,16 @@ @Resource private MemberCannonService memberCannonService; + + /** + * 获取账户金币,代币,USDT可用余额 + */ + @ApiOperation(value="获取账户金币,代币,USDT可用余额", notes="获取账户金币,代币,USDT可用余额") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = AccountAvaBanlaceVo.class)}) + @GetMapping(value="/getAccountAva") + public Result getAccountAvaBanlace() { + return memberCannonService.getAccountAvaBanlace(); + } /** * 获取金币账户 @@ -86,5 +94,13 @@ return memberCannonService.getOwnCannon(); } + /** + * 捕鱼 + */ + @ApiOperation(value = "捕鱼") + @PostMapping(value = "/fishing") + public Result fishing(@RequestBody FishingDto fishingDto) { + return memberCannonService.fishing(fishingDto); + } } -- Gitblit v1.9.1