package com.cezarykluczynski.stapi.server.comic_collection.mapper;

import com.cezarykluczynski.stapi.client.rest.model.ComicCollectionBase;
import com.cezarykluczynski.stapi.model.comic_collection.dto.ComicCollectionRequestDTO;
import com.cezarykluczynski.stapi.model.comic_collection.entity.ComicCollection;
import com.cezarykluczynski.stapi.server.comic_collection.dto.ComicCollectionRestBeanParams;
import com.cezarykluczynski.stapi.server.common.mapper.RequestSortRestMapper;
import com.cezarykluczynski.stapi.server.configuration.MapstructConfiguration;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(config = MapstructConfiguration.class, uses = {RequestSortRestMapper.class})
public interface ComicCollectionBaseRestMapper {

	ComicCollectionRequestDTO mapBase(ComicCollectionRestBeanParams comicCollectionRestBeanParams);

	ComicCollectionBase mapBase(ComicCollection comicCollection);

	List<ComicCollectionBase> mapBase(List<ComicCollection> comicCollectionList);

}
