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.FreightBalance;
import com.red.circle.wallet.inner.model.dto.UserFreightBalanceDTO;
import java.util.List;
import org.mapstruct.Mapper;

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

  UserFreightBalanceDTO toUserFreightBalanceDTO(FreightBalance freightBalance);

  List<UserFreightBalanceDTO> toListUserFreightBalanceDTO(List<FreightBalance> freightBalances);
}
