KKSU
2024-06-06 424ad35dcd1fafb51a0ba77523b11e6871f2858c
src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java
@@ -1,9 +1,7 @@
package cc.mrbird.febs.dapp.service;
import cc.mrbird.febs.common.entity.QueryRequest;
import cc.mrbird.febs.dapp.dto.RecordInPageDto;
import cc.mrbird.febs.dapp.dto.TransferDto;
import cc.mrbird.febs.dapp.dto.WalletOperateDto;
import cc.mrbird.febs.dapp.dto.*;
import cc.mrbird.febs.dapp.entity.DappAccountMoneyChangeEntity;
import cc.mrbird.febs.dapp.entity.DappFundFlowEntity;
import cc.mrbird.febs.dapp.entity.DappWalletCoinEntity;
@@ -13,21 +11,14 @@
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);
@@ -35,7 +26,21 @@
    IPage<DappAccountMoneyChangeEntity> accountMoneyChangeInPage(DappAccountMoneyChangeEntity change, QueryRequest request);
    void transfer(TransferDto transferDto);
    Long transfer(TransferDto transferDto);
    Map<String, BigDecimal> calPrice();
    BigDecimal calPrice(PriceDto priceDto);
    void withdraw(WithdrawDto withdrawDto);
    void updateWalletCoinWithLock(BigDecimal amount, Long memberId, int type);
    void updateWalletMineWithLock(BigDecimal amount, Long memberId, int type);
    void addFrozenAmountWithLock(BigDecimal amount, Long memberId);
    void releaseFrozenAmountWithLock(Long memberId);
    DappWalletCoinEntity findByMemberId(Long memberId);
    Long buyNode(BuyNodeDto buyNodeDto);
}