package com.haha.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haha.entity.DistributorWithdrawal;
import com.haha.entity.dto.WithdrawalQueryDTO;
import com.haha.entity.dto.WithdrawalReviewDTO;

import java.math.BigDecimal;

public interface DistributorWithdrawalService extends IService<DistributorWithdrawal> {

    DistributorWithdrawal applyWithdrawal(Long distributorId, BigDecimal amount);

    DistributorWithdrawal reviewWithdrawal(WithdrawalReviewDTO dto, Long reviewerId, String reviewerName);

    DistributorWithdrawal confirmTransfer(Long withdrawalId);

    IPage<DistributorWithdrawal> getPage(WithdrawalQueryDTO queryDTO);
}
