KKSU
2024-07-08 f0922bc416fad3aa6121ffdbdd217bffb94f518f
src/main/java/cc/mrbird/febs/dapp/service/DappWalletService.java
@@ -1,33 +1,25 @@
package cc.mrbird.febs.dapp.service;
import cc.mrbird.febs.common.entity.FebsResponse;
import cc.mrbird.febs.common.entity.QueryRequest;
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;
import cc.mrbird.febs.dapp.entity.DappWalletMineEntity;
import cc.mrbird.febs.dapp.vo.ActiveNftListVo;
import cc.mrbird.febs.dapp.vo.WalletInfoVo;
import cc.mrbird.febs.dapp.vo.*;
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,16 +29,39 @@
    Long transfer(TransferDto transferDto);
    Map<String, BigDecimal> calPrice(PriceDto priceDto);
    ActiveNftListVo boxSurprise();
    void activeNft(ActiveDto activeDto);
    List<ActiveNftListVo> findUnActiveNftList();
    BigDecimal calPrice(PriceDto priceDto);
    void withdraw(WithdrawDto withdrawDto);
    void updateWalletCoinWithLock(BigDecimal amount, Long memberId);
    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);
    Long buyStar(BuyStarDto buyStarDto);
    FebsResponse nodeList();
    MemberNodeVo memberNode(MemberNodeDto memberNodeDto);
    Long chargeFee(ChargeFeeDto chargeFeeDto);
    FebsResponse agreeWithdraw(Long id);
    FebsResponse disagreeWithdraw(Long id);
    ApiIndexInfoVo indexInfo();
    List<ApiStorageInfoVo> storageIndex();
    List<ApiStorageInfoVo> directIndex();
    List<ApiDirectInfoVo> directNumIndex();
}