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

import com.cf.imes.module.system.dal.dataobject.datasource.DataSourceFiledDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 系统数据源 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataSourceRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30829")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("数据源名称")
    private String name;

    @Schema(description = "sqlStr", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("sqlStr")
    private String sqlStr;

    @Schema(description = "数据源类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("数据源类型")
    private Integer type;

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

    @Schema(description = "字段列表")
    private List<DataSourceFiledDO> filedList;

}