package cn.iocoder.yudao.module.asset.controller.admin.vehicleregistration.vo;

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

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 行驶证识别 Response VO
 */
@Schema(description = "管理后台 - 行驶证识别 Response VO")
@Data
public class VehicleLicenseRecognizeRespVO {

    @Schema(description = "车辆识别代号（VIN）", example = "LB9A32A22R0LS1439")
    private String vin;

    @Schema(description = "号牌号码", example = "粤AGR5547")
    private String plateNo;

    @Schema(description = "品牌型号", example = "帕力安牌XDQ5041XLCFCEV")
    private String brand;

    @Schema(description = "车辆类型", example = "轻型厢式货车")
    private String vehicleType;

    @Schema(description = "所有人", example = "广州开发区交投氯能运营管理有限公司")
    private String owner;

    @Schema(description = "使用性质", example = "货运")
    private String useCharacter;

    @Schema(description = "发动机号码", example = "268E7AEL153")
    private String engineNo;

    @Schema(description = "注册日期", example = "2025-02-19")
    private LocalDate registerDate;

    @Schema(description = "发证日期", example = "2025-10-21")
    private LocalDate issueDate;

    @Schema(description = "检验记录", example = "2026-06")
    private String inspectionRecord;

    @Schema(description = "强制报废期止", example = "2035-12-31")
    private LocalDate scrapDate;

    @Schema(description = "整备质量（kg）", example = "1500")
    private String curbWeight;

    @Schema(description = "总质量（kg）", example = "1875")
    private String totalMass;

    @Schema(description = "核定载人数", example = "5")
    private String approvedPassengerCapacity;

    // ==================== 扩展信息 ====================

    @Schema(description = "车辆ID（如果找到匹配车辆）", example = "1")
    private Long vehicleId;

    @Schema(description = "匹配的车型ID", example = "1")
    private Long vehicleModelId;

    @Schema(description = "匹配置信度（0-100）", example = "95.5")
    private BigDecimal matchConfidence;

    @Schema(description = "匹配方式（exact/fuzzy/none）", example = "exact")
    private String matchMethod;

    @Schema(description = "OCR厂商", example = "baidu")
    private String ocrProvider;

    @Schema(description = "OCR识别耗时（毫秒）", example = "988")
    private Integer ocrCostTime;

}
