package com.cf.imes.module.report.controller.admin.dataset.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Gqr
 * @since 2024/7/8 11:01
 */
@Schema(description = "管理后台 - 报表数据集 Response VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReportDatasetRespVO {
    @Schema(description = "数据集id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "数据集名称", example = "测试数据集")
    private String name;

    @Schema(description = "数据源id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long datasourceId;

    @Schema(description = "动态查询SQL")
    private String sql;

    @Schema(description = "bean数据源方法名")
    private String method;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    @Schema(description = "参数列表")
    private List<ReportDatasetParameterVO> parameters;

    @Schema(description = "字段列表")
    private List<ReportDatasetFieldVO> fields;
}
