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

import com.seer.teach.pay.admin.financial.controller.request.AdminPayOfflineTransferRecordReq;
import com.seer.teach.pay.admin.financial.controller.response.AdminPayOfflineTransferRecordResp;
import com.seer.teach.pay.entity.PayOfflineTransferRecordEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AdminPayOfflineTransferRecordConvert {

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

    AdminPayOfflineTransferRecordResp entityToResponse(PayOfflineTransferRecordEntity payOfflineTransferRecordEntity);

    List<AdminPayOfflineTransferRecordResp> entityListToResponseList(List<PayOfflineTransferRecordEntity> payOfflineTransferRecordEntityList);

    PayOfflineTransferRecordEntity reqToEntity(AdminPayOfflineTransferRecordReq payOfflineTransferRecordRequest);
}