package cn.iocoder.yudao.module.pms.controller.admin.iotcarzhbd.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.LocalDateTime;
import java.util.Collection;

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

@Schema(description = "管理后台 - 中航北斗车辆表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotCarZhbdPageReqVO extends PageParam {

    @Schema(description = "组织id")
    private String deviceCode;

    @Schema(description = "工单名称", example = "芋艿")
    private String deviceName;

    @Schema(description = "工单类型", example = "10570")
    private String carId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "用户名称", example = "芋艿")
    private String userName;

    @Schema(description = "用户id", example = "26763")
    private Long userId;

    /**
     * 扩展字段
     */
    @Schema(description = "设备编码 有的编码在设备表中不存在", example = "10570")
    private Collection<String> deviceCodes;

    @Schema(description = "设备编码 与设备表额外匹配的编码", example = "10570")
    private Collection<String> customDeviceCodes;

    @Schema(description = "中航北斗 carId 集合", example = "10570")
    private Collection<String> carIds;
}