UNPKG

@ginstone/nga-api

Version:

125 lines (124 loc) 2.62 kB
import { ReplySimple, ReplySimpleRaw } from "./Reply"; import { TitleFont } from "./TitleFont"; import { TopicMiscVar, TopicMiscVarRaw } from "./TopicMiscVar"; import { ReplyStatus } from "../../enums/ReplyStatus"; import { EntranceType } from "../../enums/EntranceType"; export declare class TopicInfo { /** * 回复(出现在收藏和搜索用户回复接口) */ readonly reply?: ReplySimple; /** * 作者用户名 */ readonly authorName?: string; /** * 作者uid */ readonly authorUid?: number; /** * 版面id */ readonly forumId?: number; /** * 未知数据 */ readonly jData?: string; /** * 最后改动时间 */ readonly lastModify?: Date; /** * 最后回复时间 */ readonly lastPost?: Date; /** * 最后回复的用户名 */ readonly lastPosterName?: string; /** * 所属合集信息, 字段"1" 为 fid, "2"为版面名称 */ readonly parent?: TopicParent; /** * 发表时间 */ readonly postDatetime?: Date; /** * 从某个主题镜像而来 */ readonly quoteFromTopicId?: number; /** * 推荐分 */ readonly recommendScore?: number; /** * 回复数 */ readonly replies?: number; /** * 标题 */ title?: string | null; /** * 主题id */ readonly topicId?: number; /** * 主题标题字体信息 */ readonly titleFont?: TitleFont; /** * 额外信息 */ readonly topicMiscVar?: TopicMiscVar; /** * 主题url */ readonly url?: string; /** * 状态 */ readonly status?: ReplyStatus; /** * 总页数 */ readonly totalPage?: number; readonly entranceType: EntranceType; constructor(raw: TopicInfoRaw); } export interface TopicInfoRaw { __P?: ReplySimpleRaw; author?: string; authorid?: number | string; fid?: number; jdata?: string; lastmodify?: number; lastpost?: number; lastposter?: string; parent?: TopicParentRaw; postdate?: number; quote_from?: number; recommend?: number; replies?: number; subject?: string; tid?: number; topic_misc?: string; topic_misc_var?: TopicMiscVarRaw; tpcurl?: string; type?: number; } /** * 合集中主题的上级信息 */ export declare class TopicParent { forumId: number; colTid: number; name: string; constructor(raw: TopicParentRaw); } export interface TopicParentRaw { 0: number; 1: number; 2: string; }