UNPKG

@ginstone/nga-api

Version:

97 lines (96 loc) 1.81 kB
import { CurrentUser } from "../field/CurrentUser"; import { Forum, ForumRaw } from "../field/Forum"; import { TopicDetail, TopicDetailRaw } from "../field/TopicDetail"; import { UserContext } from "../field/user/UserContext"; import { ReplyInfo } from "../field/ReplyInfo"; /** * read.php 接口响应 */ export declare class ReadBody { /** * 当前用户 */ readonly currentUser?: CurrentUser; /** * 版面信息 */ readonly forum?: Forum; /** * 主题信息 */ readonly topicInfo?: TopicDetail | undefined; /** * 用户相关信息 */ readonly userContext: UserContext; /** * 回复信息 */ readonly replies: ReplyInfo[]; /** * 分页数据 */ readonly pageData: PageData; constructor(raw: ReadBodyRaw); static getPageData(raw: ReadBodyRaw): PageData; } export interface ReplyData { author: any; reply: any; } export interface PageData { /** * 当前页码 */ readonly page: number; /** * 楼层总数(含主楼) */ readonly total: number; /** * 总页数 */ readonly totalPage: number; /** * 每页回复数 */ readonly size: number; } export interface ReadBodyRaw { /** * 当前用户 */ __CU: CurrentUser; /** * 版面信息 */ __F: ForumRaw; /** * 当前页码 */ __PAGE: number; /** * 楼层总数(含主楼) */ __ROWS: number; /** * 每页回复数 */ __R__ROWS_PAGE: number; /** * 主题信息 */ __T: TopicDetailRaw; /** * 用户信息上下文 */ __U: any; /** * 回复信息 */ __R: any; /** * 总页数 */ totalPage?: number; }