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

import com.seer.teach.pay.admin.withdrawal.controller.request.PayWithdrawalConfigReq;
import com.seer.teach.pay.admin.withdrawal.controller.response.PayWithdrawalConfigResp;
import com.seer.teach.pay.entity.PayWithdrawalConfigEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PayWithdrawalConfigConvert {

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

    PayWithdrawalConfigResp entityToResponse(PayWithdrawalConfigEntity payWithdrawalConfigEntity);

    List<PayWithdrawalConfigResp> entityListToResponseList(List<PayWithdrawalConfigEntity> payWithdrawalConfigEntityList);

    PayWithdrawalConfigEntity reqToEntity(PayWithdrawalConfigReq payWithdrawalConfigRequest);
}