package cn.iocoder.yudao.module.asset.convert.station;

import cn.iocoder.yudao.module.asset.controller.admin.station.vo.HydrogenStationRespVO;
import cn.iocoder.yudao.module.asset.controller.admin.station.vo.HydrogenStationSimpleRespVO;
import cn.iocoder.yudao.module.asset.dal.dataobject.station.HydrogenStationDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 加氢站 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface HydrogenStationConvert {

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

    /**
     * 转换为响应 VO
     */
    HydrogenStationRespVO convert(HydrogenStationDO bean);

    /**
     * 转换为精简响应 VO
     */
    HydrogenStationSimpleRespVO convertSimple(HydrogenStationDO bean);

    /**
     * 批量转换为精简响应 VO
     */
    List<HydrogenStationSimpleRespVO> convertSimpleList(List<HydrogenStationDO> list);

}
