StatisticsByChartsVO.java 2.5 KB
package com.skua.modules.guest.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author sonin
 * @date 2021/8/18 10:14
 */
@Data
@ApiModel(value="StatisticsByChartsVO对象", description="按图表统计")
public class StatisticsByChartsVO {

    @ApiModelProperty(value = "本周")
    private Week week;

    @ApiModelProperty(value = "本月")
    private Month month;

    @ApiModelProperty(value = "本年")
    private Year year;

    public static class Week implements Serializable {
        @ApiModelProperty(value = "x数据")
        private List<String> xData;

        @ApiModelProperty(value = "y数据")
        private List<Integer> yData;

        @JsonProperty(value = "xData")
        public List<String> getXData() {
            return xData;
        }

        public void setXData(List<String> xData) {
            this.xData = xData;
        }

        @JsonProperty(value = "yData")
        public List<Integer> getYData() {
            return yData;
        }

        public void setYData(List<Integer> yData) {
            this.yData = yData;
        }
    }

    public static class Month implements Serializable {

        @ApiModelProperty(value = "x数据")
        private List<String> xData;

        @ApiModelProperty(value = "y数据")
        private List<Integer> yData;

        @JsonProperty(value = "xData")
        public List<String> getXData() {
            return xData;
        }

        public void setXData(List<String> xData) {
            this.xData = xData;
        }

        @JsonProperty(value = "yData")
        public List<Integer> getYData() {
            return yData;
        }

        public void setYData(List<Integer> yData) {
            this.yData = yData;
        }
    }

    @Data
    public static class Year implements Serializable {

        @ApiModelProperty(value = "x数据")
        private List<String> xData;

        @ApiModelProperty(value = "y数据")
        private List<Integer> yData;

        @JsonProperty(value = "xData")
        public List<String> getXData() {
            return xData;
        }

        public void setXData(List<String> xData) {
            this.xData = xData;
        }

        @JsonProperty(value = "yData")
        public List<Integer> getYData() {
            return yData;
        }

        public void setYData(List<Integer> yData) {
            this.yData = yData;
        }
    }
}