package com.xindazhou.vehicle.convert.binding;

import com.xindazhou.vehicle.api.dto.bind.VehicleBindRespDTO;
import com.xindazhou.vehicle.dal.dataobject.binding.UserVehicleBindingDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户-车辆关系 Convert
 *
 * @author xindazhou
 */
@Mapper
public interface UserVehicleBindingConvert {

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

    VehicleBindRespDTO convert(UserVehicleBindingDO bean);

    List<VehicleBindRespDTO> convertList(List<UserVehicleBindingDO> list);

}

