package com.xdap.self_development.controller.form;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class ChartCommonItem {
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "图表类型不能为空")
    private String chartType;
    @NotBlank(message = "X轴不能为空")
    @JsonProperty("xAxis")
    private String xAxis;
    @NotEmpty(message = "Y轴不能为空")
    @JsonProperty("yAxis")
    private List<String> yAxis;
}
