xiaoyong931011
2021-12-08 f5e6133809c553cfd9fb28ee61019927c547c374
src/main/java/com/xcong/excoin/modules/fish/controller/MemberCannonController.java
@@ -4,11 +4,9 @@
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.*;
import com.xcong.excoin.modules.fish.entity.CannonWinRecord;
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;
@@ -104,4 +102,46 @@
        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);
    }
    /**
     * 查看中奖记录
     */
    @ApiOperation(value = "查看中奖记录")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = CannonWinRecordVo.class)})
    @PostMapping(value = "/getOwnAwards")
    public Result getOwnAwards(@RequestBody @Valid CannonWinRecordDto cannonWinRecordDto) {
            return memberCannonService.getOwnAwards(cannonWinRecordDto);
    }
    /**
     * 查看最新的十条中奖记录
     */
    @ApiOperation(value = "查看最新的十条中奖记录")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = CannonWinRecordVo.class)})
    @GetMapping(value = "/getListAwards")
    public Result getListAwards() {
        return memberCannonService.getListAwards();
    }
}