package com.lingyue.ai.dto.ner;

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

/**
 * 实体位置信息
 *
 * @author lingyue
 * @since 2026-01-19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "实体位置信息")
public class PositionInfo {

    @Schema(description = "字符起始位置")
    private Integer charStart;

    @Schema(description = "字符结束位置")
    private Integer charEnd;

    @Schema(description = "所在行号")
    private Integer line;

    @Schema(description = "所在页码（如果有）")
    private Integer page;

    @Schema(description = "文件ID（如果有）")
    private String fileId;
}
