tag解析数据请求
parent
a09a73b827
commit
cd2b38b212
@ -0,0 +1,18 @@
|
||||
package me.zhengjie.common.json;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Enzo
|
||||
* @date : 2022/3/3
|
||||
*/
|
||||
@Data
|
||||
public class AnalyticalDataResponse implements Serializable {
|
||||
private int status;
|
||||
|
||||
private String msg;
|
||||
|
||||
private Object data;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package me.zhengjie.constant;
|
||||
|
||||
/**
|
||||
* @author Enzo
|
||||
* @date : 2022/3/3
|
||||
*/
|
||||
public class SystemConstant {
|
||||
|
||||
|
||||
/**
|
||||
* 解析数据
|
||||
*/
|
||||
public static final String PARSE_DATA_LINK = "http://localhost:9191/data/analysis/tag";
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package me.zhengjie.modules.dmpMonitor.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author Enzo
|
||||
* @date : 2022/3/2
|
||||
*/
|
||||
@Data
|
||||
public class DataAnalysisRequestDTO {
|
||||
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty("tag标识")
|
||||
@NotBlank(message = "标识不能为空")
|
||||
private String tagStr;
|
||||
|
||||
@ApiModelProperty("投放数量")
|
||||
@NotNull(message = "投放数量不能为空")
|
||||
private Integer deliveryQuantity;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package me.zhengjie.modules.dmpMonitor.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author Enzo
|
||||
* @date : 2022/3/2
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ValidableList <E> implements Serializable {
|
||||
@Valid
|
||||
private List<E> list;
|
||||
|
||||
public ValidableList(){
|
||||
list = new ArrayList<>();
|
||||
}
|
||||
|
||||
public ValidableList(List<E> list){
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue