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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
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;

/**
 * 车辆上牌记录分页查询 Request VO
 */
@Schema(description = "管理后台 - 车辆上牌记录分页查询 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class VehicleRegistrationPageReqVO extends PageParam {

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

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

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

    @Schema(description = "上牌日期开始", example = "2025-01-01")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate plateDateStart;

    @Schema(description = "上牌日期结束", example = "2025-12-31")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate plateDateEnd;

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

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

    @Schema(description = "创建时间开始", example = "2025-01-01 00:00:00")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTimeStart;

    @Schema(description = "创建时间结束", example = "2025-12-31 23:59:59")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTimeEnd;

}
