package com.xindazhou.vehicle.convert.gallery;

import com.xindazhou.framework.common.pojo.PageResult;
import com.xindazhou.vehicle.controller.admin.vehicle.vo.VehicleImageRespVO;
import com.xindazhou.vehicle.dal.dataobject.gallery.VehicleImageDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 车辆图片 Convert
 *
 * @author xindazhou
 */
@Mapper
public interface VehicleImageConvert {

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

    VehicleImageRespVO convert(VehicleImageDO bean);

    PageResult<VehicleImageRespVO> convertPage(PageResult<VehicleImageDO> page);

}

