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

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.order.infra.database.rds.entity.count.TotalRecharge;
import com.red.circle.order.inner.model.dto.UserTotalRechargeDTO;
import java.util.List;
import java.util.Map;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2024/1/23
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface TotalRechargeInnerConvertor {

  List<UserTotalRechargeDTO> toListUserTotalRechargeDTO(List<TotalRecharge> totalRecharges);

  Map<Long, List<UserTotalRechargeDTO>> toMapUserTotalRechargeDTO(
      Map<Long, List<TotalRecharge>> map);

}
