package com.red.circle.console.app.convertor.count.ops;

import com.red.circle.console.app.dto.clienobject.count.ops.CountDailyPurchaseAmountPlatformCO;
import com.red.circle.console.app.dto.clienobject.count.ops.StatisticsDailyPurchaseAmountCO;
import com.red.circle.console.infra.database.rds.entity.count.StatisticsDailyPurchaseAmount;
import com.red.circle.console.infra.database.rds.entity.count.StatisticsDailyPurchaseAmountPlatform;
import com.red.circle.console.infra.database.rds.entity.count.StatisticsMonthlyPurchaseAmountPlatform;
import com.red.circle.framework.core.convertor.ConvertorModel;
import java.util.List;
import org.mapstruct.Mapper;

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

  CountDailyPurchaseAmountPlatformCO toCountDailyPurchaseAmountPlatformCO(
      StatisticsMonthlyPurchaseAmountPlatform platform);

  List<CountDailyPurchaseAmountPlatformCO> toListMonthlyCountDailyPurchaseAmountPlatformCO(
      List<StatisticsMonthlyPurchaseAmountPlatform> platform);

  CountDailyPurchaseAmountPlatformCO toCountDailyPurchaseAmountPlatformCO(
      StatisticsDailyPurchaseAmountPlatform purchaseAmountPlatform);

  List<CountDailyPurchaseAmountPlatformCO> toListCountDailyPurchaseAmountPlatformCO(
      List<StatisticsDailyPurchaseAmountPlatform> platforms);

  List<StatisticsDailyPurchaseAmountCO> toListStatisticsDailyPurchaseAmountCO(
      List<StatisticsDailyPurchaseAmount>  purchaseAmounts);
}
