Commit 3a2f69b6 authored by 梁彬's avatar 梁彬

refactor: 统计类型重构

parent 774c0caa
......@@ -22,9 +22,9 @@ public class RealTimeVariableDTO {
@ApiModelProperty(value = "时间间隔,代表(天,时,分,秒)", required = true)
private Integer interval;
@ApiModelProperty(value = "统计类型,代表(合计值,平均值,最大值,最小值)", required = true)
private Integer statisticsType;
private StatisticsType statisticsType;
@ApiModelProperty(value = "变量集合ids", required = true)
private List<String> variableIds;
@ApiModelProperty(value = "以变量为维度是1 , 以时间为维度是2", required = true)
private Integer dimension;
private Integer dimension; //FIXME 考虑用枚举
}
package com.syc.slm.slmbi.dto;
/**
* 统计类型
*
* @author liangbin
* @date 2021/3/31
*/
public enum StatisticsType {
// 合计值
SUM,
// 平均值
AVG,
// 最大值
MAX,
// 最小值
MIN;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment