package com.lingyue.extract.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Map;

/**
 * 创建生成任务请求
 * 
 * @author lingyue
 * @since 2026-01-24
 */
@Data
@Schema(description = "创建生成任务请求")
public class CreateGenerationRequest {
    
    @NotBlank(message = "模板ID不能为空")
    @Schema(description = "模板ID", required = true)
    private String templateId;
    
    @Schema(description = "任务名称")
    private String name;
    
    @NotNull(message = "来源文件映射不能为空")
    @Schema(description = "来源文件映射，key为来源文件别名，value为文档ID", required = true)
    private Map<String, String> sourceFileMap;
}
