package com.lingyue.graph.dto;

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

import java.util.List;

/**
 * 批量创建图节点请求 DTO
 *
 * @author lingyue
 * @since 2026-01-19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "批量创建图节点请求")
public class BatchCreateNodesRequest {

    @Schema(description = "文档ID", required = true)
    private String documentId;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "节点列表", required = true)
    private List<CreateNodeRequest> nodes;

    @Schema(description = "是否删除已有节点后再创建", example = "false")
    @Builder.Default
    private Boolean replaceExisting = false;
}
