package com.aizuda.easy.retry.server.web.service.convert;

import com.aizuda.easy.retry.template.datasource.persistence.po.SceneConfig;
import com.aizuda.easy.retry.server.web.model.response.SceneConfigResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author: www.byteblogs.com
 * @date : 2022-03-03 11:14
 */
@Mapper
public interface SceneConfigResponseVOConverter {

    SceneConfigResponseVOConverter INSTANCE = Mappers.getMapper(SceneConfigResponseVOConverter.class);

    SceneConfigResponseVO convert(SceneConfig sceneConfig);

    List<SceneConfigResponseVO> batchConvert(List<SceneConfig> sceneConfigs);
}
