package com.ruoyi.all.service;
import com.ruoyi.all.domain.Car;
import com.ruoyi.all.dto.CarDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import java.util.List;
@Mapper(componentModel = "spring")
public interface CarMapping {
@Mapping(target = "type", source = "car.type")
@Mapping(target = "seatCount", source = "count")
CarDto toCarDto(Car car);
@Mapping(target = "type", source = "car.type")
@Mapping(target = "seatCount", source = "count")
List<CarDto> toList(List<Car> carDtoList);
}