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

import com.bstek.ureport.definition.datasource.DatasourceDefinition;
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/3 11:53
 */
@Schema(description = "管理后台 - 报表模板信息 Response VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReportTemplateRespVO {
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "模板名称", example = "生产单模板")
    private String name;

    @Schema(description = "报表模板")
    private String content;

    @Schema(description = "模板类型，0内置、1自定义", example = "0")
    private Integer type;

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

    @Schema(description = "备注", example = "该模板仅供生产使用")
    private String remark;

    @Schema(description = "数据源")
    private List<DatasourceDefinition> datasource;
}
