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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

@Schema(description = "数据源字段新增/修改")
@Data
public class DataSourceSaveReqVO {

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


//    @Schema(description = "字段数据", requiredMode = Schema.RequiredMode.REQUIRED)
//    private List<SourceField> sourceFields;


    @Schema(description = "字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    private String name;

    @Schema(description = "数据源的字段key", requiredMode = Schema.RequiredMode.REQUIRED)
    private String  keyName;

    @Schema(description = "数据源的父ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long  parentId;


//    @Valid
//    @Data
//    public static class SourceField {
//
//        @Schema(description = "字段名称", requiredMode = Schema.RequiredMode.REQUIRED)
//        private String name;
//
//        @Schema(description = "数据源的字段key", requiredMode = Schema.RequiredMode.REQUIRED)
//        private String  key;
//
//        @Schema(description = "数据源的父ID", requiredMode = Schema.RequiredMode.REQUIRED)
//        private Long  parentId;
//    }


}