package com.lingyue.graph.dto;

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

/**
 * 更新数据源请求
 * 
 * @author lingyue
 * @since 2026-01-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "更新数据源请求")
public class UpdateDataSourceRequest {
    
    @Schema(description = "数据源名称")
    private String name;
    
    @Schema(description = "数据源类型", example = "text/table/image")
    private String type;
    
    @Schema(description = "来源类型", example = "file/manual/rule_result")
    private String sourceType;
    
    @Schema(description = "值类型", example = "text/image/table/mixed")
    private String valueType;
    
    @Schema(description = "聚合方式", example = "first/last/concat/sum/avg/list")
    private String aggregateType;
    
    @Schema(description = "聚合分隔符")
    private String separator;
    
    @Schema(description = "数据源配置")
    private Object config;
    
    @Schema(description = "元数据")
    private Object metadata;
}
