package com.xindazhou.vehicle.controller.admin.vehicle.vo;

import com.xindazhou.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.LocalDateTime;

import static com.xindazhou.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 失窃监控分页查询 Request VO
 *
 * @author xindazhou
 */
@Schema(description = "管理后台 - 失窃监控分页查询 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class VehicleTheftPageReqVO extends PageParam {

    @Schema(description = "车架号", example = "VIN123456789")
    private String vin;

    @Schema(description = "车主姓名", example = "张三")
    private String ownerName;

    @Schema(description = "车主手机号", example = "13800138000")
    private String ownerMobile;

    @Schema(description = "分类", example = "category1")
    private String category;

    @Schema(description = "型号", example = "model1")
    private String model;

    @Schema(description = "失窃上报时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] theftReportTime;

}

