| | |
| | | package cc.mrbird.febs.dapp.controller; |
| | | |
| | | import cc.mrbird.febs.common.annotation.EncryptEnable; |
| | | import cc.mrbird.febs.common.configure.i18n.MessageSourceUtils; |
| | | import cc.mrbird.febs.common.contants.AppContants; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.utils.LoginUserUtil; |
| | |
| | | import cc.mrbird.febs.dapp.service.DappMemberService; |
| | | import cc.mrbird.febs.dapp.service.DappSystemService; |
| | | import cc.mrbird.febs.dapp.service.DappWalletService; |
| | | import cc.mrbird.febs.dapp.vo.ActiveNftListVo; |
| | | import cc.mrbird.febs.dapp.vo.TeamListVo; |
| | | import cc.mrbird.febs.dapp.vo.WalletInfoVo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * @author |
| | | * @author |
| | | * @date 2022-03-17 |
| | | **/ |
| | | @Slf4j |
| | |
| | | return new FebsResponse().success().data(dappMemberService.findTeamList(teamListDto)); |
| | | } |
| | | |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ActiveNftListVo.class) |
| | | }) |
| | | @ApiOperation(value = "开盲盒", notes = "开盲盒") |
| | | @PostMapping(value = "/boxSurprise") |
| | | public FebsResponse boxSurprise() { |
| | | ActiveNftListVo data = dappWalletService.boxSurprise(); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | @ApiOperation(value = "激活卡牌", notes = "激活卡牌") |
| | | @PostMapping(value = "/activeNft") |
| | | public FebsResponse activeNft(@RequestBody @Valid ActiveDto activeDto) { |
| | | dappWalletService.activeNft(activeDto); |
| | | return new FebsResponse().success().message(MessageSourceUtils.getString("nft_active_002")); |
| | | } |
| | | |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ActiveNftListVo.class) |
| | | }) |
| | | @ApiOperation(value = "卡牌列表", notes = "卡牌列表") |
| | | @PostMapping(value = "/findNftList") |
| | | public FebsResponse findNftList() { |
| | | return new FebsResponse().success().data(dappWalletService.findUnActiveNftList()); |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/logout") |
| | | public FebsResponse logout() { |
| | | DappMemberEntity member = LoginUserUtil.getAppUser(); |