package com.ningdatech.carapi.car.position.model.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @author liuxinxin
 * @date 2022/10/8 上午11:23
 */
@ApiModel(description = "获取车辆轨迹数据列表(无分页)请求")
@Data
public class ReqTrajectoryDataPO {

    @NotBlank(message = "车牌不能为空")
    @ApiModelProperty("车牌")
    private String carPlate;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;

    @ApiModelProperty("校验公钥")
    @NotBlank(message = "秘钥不能为空")
    private String key;

}
