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 jakarta.validation.constraints.NotBlank;

/**
 * @author Gqr
 * @since 2024/7/8 11:01
 */
@Schema(description = "管理后台 - 报表数据源测试连接 Request VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ReportDatasourceTestConnReqVO {

    @Schema(description = "数据源驱动类", example = "com.mysql.cj.jdbc.Driver")
    @NotBlank(message = "数据源驱动类不能为空")
    private String driverClassName;

    @Schema(description = "数据源地址", example = "https://www.cf.com")
    @NotBlank(message = "数据源地址不能为空")
    private String url;

    @Schema(description = "数据源用户名", example = "晨丰")
    @NotBlank(message = "数据源用户名不能为空")
    private String userName;

    @Schema(description = "数据源密码", example = "晨丰")
    @NotBlank(message = "数据源密码不能为空")
    private String password;
}
