package com.yuchen.saas.parking.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author 蔡文强
 * @Date 2023/7/11 15:56
 * @Description 车辆进出流量统计查询参数
 */
@Data
public class PmgBatVehicleFlowQueryDTO {

    /**
     * 园区ID
     */
    @ApiModelProperty(name = "parkId", value = "园区ID")
    private Long parkId;

    /**
     *  停车场ID
     */
    @ApiModelProperty(name = "parkingId", value = "停车场ID")
    private Long parkingId;

    /**
     * 统计类型(1:按天 2:按时)
     */
    @NotNull(message = "统计类型不能为空")
    @ApiModelProperty(name = "type", value = "统计类型(1:按天 2:按时)")
    private Integer type;

    /**
     * 开始时间
     */
    @NotBlank(message = "开始时间不能为空")
    @ApiModelProperty(name = "beginTime", value = "开始时间")
    private String beginTime;

    /**
     * 结束时间
     */
    @NotBlank(message = "结束时间不能为空")
    @ApiModelProperty(name = "endTime", value = "结束时间")
    private String endTime;

    @ApiModelProperty(name = "statistType", value = "统计类型")
    private Integer statistType;


    @ApiModelProperty(name = "length", value = "时间长度")
    private Integer length;

}
