package com.njcn.advance.pojo.carrycapacity.param;

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

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.time.LocalDate;

/**
 * 
 * Description:
 * Date: 2024/2/20  11:15【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CarryCapacityQueryDataParam {


    @ApiModelProperty("监测点索引")
    private String lineId;
    @ApiModelProperty("用户Id")
    private String userId;
    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private LocalDate startTime;
    @ApiModelProperty("结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private LocalDate endTime;

    @Min(2)
    @Max(25)
    @ApiModelProperty("谐波次数")
    private  Integer time=2;
}