package com.example.demo.model;

import java.util.Map;

/**
 * 统计分析结果模型。
 * 用于封装数据汇总、图表展示、自定义查询等统计分析操作的返回结果。
 */
public class StatisticsResult {

    /** 结果类型：summary-汇总, chart-图表, custom-自定义, export-导出, ledger-台账 */
    private String resultType;

    /** 结果标题 */
    private String title;

    /** 结果数据（键值对形式） */
    private Map<String, Object> data;

    /** 结果描述 */
    private String description;

    public StatisticsResult() {
    }

    public StatisticsResult(String resultType, String title, Map<String, Object> data, String description) {
        this.resultType = resultType;
        this.title = title;
        this.data = data;
        this.description = description;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
