package com.lingyue.extract.dto.config;

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

/**
 * 直接提取配置
 * 
 * 用于 extractType = "direct" 的规则
 * 直接使用定位到的内容，不进行AI处理
 * 
 * @author lingyue
 * @since 2026-01-22
 */
@Data
@Schema(description = "直接提取配置")
public class DirectExtractConfig {
    
    @Schema(description = "去除首尾空白")
    private Boolean trimWhitespace;
    
    @Schema(description = "移除换行符")
    private Boolean removeLineBreaks;
    
    @Schema(description = "合并连续空格")
    private Boolean mergeSpaces;
    
    @Schema(description = "正则提取模式（可选，用于从内容中提取特定部分）")
    private String regexPattern;
    
    @Schema(description = "正则提取分组索引（默认0表示整个匹配）")
    private Integer regexGroupIndex;
    
    @Schema(description = "值转换配置")
    private TransformConfig transform;
}
