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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 车辆上牌记录 Base VO
 */
@Data
public class VehicleRegistrationBaseVO {

    @Schema(description = "车辆ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long vehicleId;

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

    @Schema(description = "车牌号", requiredMode = Schema.RequiredMode.REQUIRED, example = "粤AGR5547")
    private String plateNo;

    @Schema(description = "上牌日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-02-19")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate plateDate;

    @Schema(description = "操作员", example = "张三")
    private String operator;

    @Schema(description = "OCR识别的品牌型号", example = "帕力安牌XDQ5041XLCFCEV")
    private String recognizedBrand;

    @Schema(description = "OCR识别的车型", example = "轻型厢式货车")
    private String recognizedModel;

    @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")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate registerDate;

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

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

    @Schema(description = "强制报废期止", example = "2035-12-31")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    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 vehicleModelId;

    @Schema(description = "行驶证照片URL", example = "https://example.com/photo.jpg")
    private String photoUrl;

    @Schema(description = "照片大小（字节）", example = "890000")
    private Integer photoSize;

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

    @Schema(description = "状态（0-待确认 1-已确认 2-已作废）", example = "0")
    private Integer status;

    @Schema(description = "备注", example = "备注信息")
    private String remark;

}
