@ccw-api/api
    Preparing search index...
    type Res = {
        anchor: CommentContextAnchor;
        floorCursor: ContextCursor;
        floors: ContextComment[];
        replies: {
            cursor: ContextCursor;
            replyIndex: number;
            replyTo: ContextComment | null;
            replyToInWindow: boolean;
            total: number;
            window: ContextComment[];
        };
        subjectOid: string;
        subjectType: SubjectType;
        total: number;
        unavailableReason: null
        | string;
    }
    Index

    锚点评论的定位信息

    floorCursor: ContextCursor

    楼层游标

    floors: ContextComment[]

    以锚点所在楼层为中心的楼层窗口

    replies: {
        cursor: ContextCursor;
        replyIndex: number;
        replyTo: ContextComment | null;
        replyToInWindow: boolean;
        total: number;
        window: ContextComment[];
    }

    锚点为回复时,其所在楼层的回复窗口;锚点为顶层评论时也有值

    Type Declaration

    • cursor: ContextCursor
    • replyIndex: number

      锚点回复在其楼层回复列表中的下标

    • replyTo: ContextComment | null

      被回复的评论(即锚点回复的目标)

    • replyToInWindow: boolean
    • total: number
    • window: ContextComment[]
    subjectOid: string
    subjectType: SubjectType
    total: number

    顶层评论总数

    unavailableReason: null | string

    评论不可用原因(如被删除),正常为 null