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

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.asset.controller.admin.vehicleregistration.vo.VehicleRegistrationRespVO;
import cn.iocoder.yudao.module.asset.controller.admin.vehicleregistration.vo.VehicleRegistrationSaveReqVO;
import cn.iocoder.yudao.module.asset.dal.dataobject.vehicleregistration.VehicleRegistrationDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 车辆上牌记录 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface VehicleRegistrationConvert {

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

    VehicleRegistrationDO convert(VehicleRegistrationSaveReqVO bean);

    VehicleRegistrationRespVO convert(VehicleRegistrationDO bean);

    List<VehicleRegistrationRespVO> convertList(List<VehicleRegistrationDO> list);

    PageResult<VehicleRegistrationRespVO> convertPage(PageResult<VehicleRegistrationDO> page);

}
