package shop.alien.lawyer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import shop.alien.entity.result.R;
import shop.alien.entity.store.LawyerPaymentTransaction;

/**
 * 支付交易 服务类
 *
 * @author system
 * @since 2025-01-XX
 */
public interface LawyerPaymentTransactionService extends IService<LawyerPaymentTransaction> {

    /**
     * 分页查询支付交易列表
     *
     * @param pageNum             页码
     * @param pageSize            页容
     * @param consultationOrderId 咨询订单ID
     * @param clientUserId        客户端用户ID
     * @param transactionStatus   交易状态
     * @return IPage<LawyerPaymentTransaction>
     */
    R<IPage<LawyerPaymentTransaction>> getPaymentTransactionList(int pageNum, int pageSize, Integer consultationOrderId,
                                                           Integer clientUserId, Integer transactionStatus);

    /**
     * 新增支付交易
     *
     * @param paymentTransaction 支付交易
     * @return R<LawyerPaymentTransaction>
     */
    R<LawyerPaymentTransaction> addPaymentTransaction(LawyerPaymentTransaction paymentTransaction);

    /**
     * 编辑支付交易
     *
     * @param paymentTransaction 支付交易
     * @return R<LawyerPaymentTransaction>
     */
    R<LawyerPaymentTransaction> editPaymentTransaction(LawyerPaymentTransaction paymentTransaction);

    /**
     * 删除支付交易
     *
     * @param id 主键
     * @return R<Boolean>
     */
    R<Boolean> deletePaymentTransaction(Integer id);
}

