xiaoyong931011
2021-12-07 03a30ab3d3922c9a7306b775e2b27ddf233d287b
src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java
@@ -5,10 +5,7 @@
import com.xcong.excoin.modules.coin.parameter.vo.OrderWalletCoinDealVo;
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;
import com.xcong.excoin.modules.fish.vo.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@@ -17,6 +14,7 @@
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
@Slf4j
@Api(value = "MemberCannonController", tags = "炮台接口类")
@@ -52,7 +50,7 @@
     */
    @ApiOperation(value = "代币金币互转")
    @PostMapping(value = "/coinGoldExchange")
    public Result coinGoldExchange(@RequestBody CoinGoldExchangeDto coinGoldExchangeDto) {
    public Result coinGoldExchange(@RequestBody @Valid CoinGoldExchangeDto coinGoldExchangeDto) {
        return memberCannonService.coinGoldExchange(coinGoldExchangeDto);
    }
@@ -71,7 +69,7 @@
    @ApiOperation(value = "获取大炮列表")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = CannonSettingVo.class)})
    @PostMapping(value = "/getCannons")
    public Result getCannons(@RequestBody GetCannonsDto getCannonsDto) {
    public Result getCannons(@RequestBody @Valid GetCannonsDto getCannonsDto) {
        return memberCannonService.getCannons(getCannonsDto);
    }
@@ -80,7 +78,7 @@
     */
    @ApiOperation(value = "兑换大炮")
    @PostMapping(value = "/cannonExchange")
    public Result cannonExchange(@RequestBody CannonExchangeDto cannonExchangeDto) {
    public Result cannonExchange(@RequestBody @Valid CannonExchangeDto cannonExchangeDto) {
        return memberCannonService.cannonExchange(cannonExchangeDto);
    }
@@ -99,8 +97,29 @@
     */
    @ApiOperation(value = "捕鱼")
    @PostMapping(value = "/fishing")
    public Result fishing(@RequestBody FishingDto fishingDto) {
    public Result fishing(@RequestBody @Valid FishingDto fishingDto) {
        return memberCannonService.fishing(fishingDto);
    }
    /**
     * 获取奖品列表
     */
    @ApiOperation(value="获取奖品列表", notes="获取奖品列表")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = AwardsVo.class)})
    @GetMapping(value="/getAwards")
    public Result getAwards() {
        return memberCannonService.getAwards();
    }
    /**
     *点击抽奖
     */
    @ApiOperation(value = "点击抽奖")
    @PostMapping(value = "/lotteryDraw")
    public Result lotteryDraw(@RequestBody @Valid LotteryDrawDto lotteryDrawDto) {
        return memberCannonService.lotteryDraw(lotteryDrawDto);
    }
}