package com.red.circle.wallet.inner.convertor;

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.wallet.infra.database.rds.entity.freight.FreightBalanceRunningWater;
import com.red.circle.wallet.inner.model.dto.FreightBalanceRunningWaterDTO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/12/26
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface FreightBalanceRunningWaterInnerConvertor {

  List<FreightBalanceRunningWaterDTO> toListFreightBalanceRunningWaterDTO(
      List<FreightBalanceRunningWater> runningWaters
  );

  FreightBalanceRunningWater toFreightBalanceRunningWater(FreightBalanceRunningWaterDTO dto);
}
