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

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

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Gqr
 * @since 2024/7/8 11:01
 */
@Schema(description = "管理后台 - 报表数据源 Request VO")
@Data
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ReportDatasourceReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 4591901987664100102L;

    @Schema(description = "模板id", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long templateId;

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

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