package com.red.circle.other.infra.convertor.material;

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.rds.entity.badge.BadgeBackpack;
import com.red.circle.other.infra.database.rds.entity.badge.BadgeConfig;
import com.red.circle.other.infra.database.rds.entity.badge.BadgePictureConfig;
import com.red.circle.other.inner.model.dto.material.BadgeBackpackDTO;
import com.red.circle.other.inner.model.dto.material.BadgeConfigDTO;
import com.red.circle.other.inner.model.dto.material.BadgePictureConfigDTO;
import java.util.List;
import java.util.Map;
import org.mapstruct.Mapper;

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

  Map<Long, BadgeConfigDTO> tpMapBadgeConfigDTO(Map<Long, BadgeConfig> badgeConfigMap);

  List<BadgeBackpack> toListBadgeBackpack(List<BadgeBackpackDTO> backpacks);

  Map<Long, BadgePictureConfigDTO> toMapBadgePictureConfigDTO(Map<Long, BadgePictureConfig> map);

  BadgePictureConfigDTO toBadgePictureConfigDTO(BadgePictureConfig pictureConfig);

  List<BadgeBackpackDTO> toListBadgeBackpackDTO(List<BadgeBackpack> backpacks);

}
