package com.seer.teach.pay.admin.withdrawal.convert;

import com.seer.teach.pay.admin.withdrawal.controller.request.PayWithdrawalOperationLogReq;
import com.seer.teach.pay.admin.withdrawal.controller.response.PayWithdrawalOperationLogResp;
import com.seer.teach.pay.entity.PayMerchantWithdrawalOperationLogEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PayWithdrawalOperationLogConvert {

    PayWithdrawalOperationLogConvert INSTANCE = Mappers.getMapper(PayWithdrawalOperationLogConvert.class);

    PayWithdrawalOperationLogResp entityToResponse(PayMerchantWithdrawalOperationLogEntity payMerchantWithdrawalOperationLogEntity);

    List<PayWithdrawalOperationLogResp> entityListToResponseList(List<PayMerchantWithdrawalOperationLogEntity> payMerchantWithdrawalOperationLogEntityList);

    PayMerchantWithdrawalOperationLogEntity reqToEntity(PayWithdrawalOperationLogReq payWithdrawalOperationLogReq);
}