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

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.cache.entity.material.EmojiConfigCache;
import com.red.circle.other.infra.database.cache.entity.material.UserEmojiBackpackCache;
import com.red.circle.other.infra.database.rds.entity.emoji.EmojiBag;
import com.red.circle.other.infra.database.rds.entity.emoji.EmojiConfig;
import com.red.circle.other.infra.database.rds.entity.emoji.EmojiGroup;
import com.red.circle.other.inner.model.dto.material.EmojiBagDTO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/6/16
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface EmojiInfraConvertor {

  List<EmojiConfigCache> toListEmojiConfigCache(List<EmojiConfig> emojiConfigs);

  UserEmojiBackpackCache toUserEmojiBackpackCache(EmojiGroup emojiGroup);

  List<EmojiBagDTO> toListEmojiBagDTO(List<EmojiBag> listByUserId);
}
