package com.xindazhou.vehicle.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * 更新车辆信息 Request DTO
 *
 * @author xindazhou
 */
@Schema(description = "RPC 服务 - 更新车辆信息 Request DTO")
@Data
public class VehicleUpdateReqDTO {

    @Schema(description = "车辆ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "车辆ID不能为空")
    private Long id;

    @Schema(description = "车辆名称", example = "我的小摩托（新名称）")
    private String name;

    @Schema(description = "车辆图片URL", example = "https://...")
    private String imageUrl;

}

