com.nebula.boxes.iface.model.view.JCharView Maven / Gradle / Ivy
The newest version!
package com.nebula.boxes.iface.model.view;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;
public interface JCharView {
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("统计图图视图")
class GroupView implements Serializable {
@ApiModelProperty("统计项")
private K name;
@ApiModelProperty("结果值")
private V total;
public GroupView(K name, V total) {
this.name = name;
this.total = total;
}
@ApiModelProperty("颜色")
private List color;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("雷达图视图")
class RadarView implements Serializable {
@ApiModelProperty("统计项")
private K name;
@ApiModelProperty("结果值")
private List item;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
class ZoneGroupView {
@ApiModelProperty("时间区间维度")
private List zoneList;
@ApiModelProperty("时间区间数据")
private List zoneDataList;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
class ZoneDataView {
@ApiModelProperty("维度名称")
private String name;
@ApiModelProperty("图标北京颜色")
private String bgColor;
@ApiModelProperty("图标边框颜色")
private String bdColor;
@ApiModelProperty("数据集合")
private List data;
}
}