package com.xindazhou.vehicle.api.dto;

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

import java.time.LocalDateTime;

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

    @Schema(description = "车辆编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "VIN 码", requiredMode = Schema.RequiredMode.REQUIRED, example = "LSGBF533XFH123456")
    private String vin;

    @Schema(description = "车牌号", example = "京A12345")
    private String plateNumber;

    @Schema(description = "车辆型号", example = "新大洲电动摩托车")
    private String model;

    @Schema(description = "车辆颜色", example = "红色")
    private String color;

    @Schema(description = "车辆品牌", example = "新大洲")
    private String brand;

    @Schema(description = "生产日期")
    private LocalDateTime productionDate;

    @Schema(description = "购买日期")
    private LocalDateTime purchaseDate;

    @Schema(description = "状态：0-禁用, 1-正常, 2-故障", example = "1",
            allowableValues = {"0", "1", "2"})
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}

