package com.sikey.wa04.business.infrastructure.convert;

import com.sikey.wa04.business.domain.entity.MapTrajectory;
import com.sikey.wa04.business.infrastructure.dto.model.MapTrajectoryModel;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: qin
 * @Date: 2025/3/11
 * @Description: 地图轨迹
 */
@Mapper
public interface MapTrajectoryConvert {

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

    @Mapping(target = "id", ignore = true)
    @Mapping(target = "createdAt", ignore = true)
    @Mapping(target = "updatedAt", ignore = true)
    @Mapping(target = "deletedAt", ignore = true)
    MapTrajectoryModel convert(MapTrajectory mapTrajectory);

}
