From 8986d6d479bf56432ebb8e18bfa0f344d028eee6 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 12 Jun 2024 18:06:11 +0800 Subject: [PATCH] 星级买入 --- src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java b/src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java index b5cf7e0..f2e0a25 100644 --- a/src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java +++ b/src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java @@ -6,28 +6,19 @@ import cc.mrbird.febs.dapp.entity.DappFundFlowEntity; import cc.mrbird.febs.dapp.entity.DappWalletCoinEntity; import cc.mrbird.febs.dapp.entity.DappWalletMineEntity; -import cc.mrbird.febs.dapp.vo.ActiveNftListVo; import cc.mrbird.febs.dapp.vo.WalletInfoVo; import com.baomidou.mybatisplus.core.metadata.IPage; -import org.springframework.web.bind.annotation.RequestBody; import java.math.BigDecimal; import java.util.List; -import java.util.Map; public interface DappWalletService { WalletInfoVo walletInfo(); - void change(WalletOperateDto walletOperateDto); - - void withdraw(WalletOperateDto walletOperateDto); - List<DappFundFlowEntity> recordInPage(RecordInPageDto recordInPageDto); IPage<DappFundFlowEntity> fundFlowInPage(DappFundFlowEntity dappFundFlowEntity, QueryRequest request); - - void withdrawAgreeOrNot(Long id, int type); IPage<DappWalletCoinEntity> walletCoinInPage(DappWalletCoinEntity walletCoin, QueryRequest request); IPage<DappWalletMineEntity> walletMineInPage(DappWalletMineEntity walletMine, QueryRequest request); @@ -37,14 +28,21 @@ Long transfer(TransferDto transferDto); - Map<String, BigDecimal> calPrice(PriceDto priceDto); + BigDecimal calPrice(PriceDto priceDto); - ActiveNftListVo boxSurprise(); + void withdraw(WithdrawDto withdrawDto); - void activeNft(ActiveDto activeDto); + void updateWalletCoinWithLock(BigDecimal amount, Long memberId, int type); - List<ActiveNftListVo> findUnActiveNftList(); + void updateWalletMineWithLock(BigDecimal amount, Long memberId, int type); - void withdraw(@RequestBody WithdrawDto withdrawDto); + void addFrozenAmountWithLock(BigDecimal amount, Long memberId); + void releaseFrozenAmountWithLock(Long memberId); + + DappWalletCoinEntity findByMemberId(Long memberId); + + Long buyNode(BuyNodeDto buyNodeDto); + + Long buyStar(BuyStarDto buyStarDto); } -- Gitblit v1.9.1