@ginstone/nga-api
Version:
157 lines (156 loc) • 2.77 kB
TypeScript
import { PostAction } from "../../enums/PostAction";
import { Attachment, AttachmentRaw } from "../field/attach/Attachment";
import { CurrentUser } from "../field/CurrentUser";
import { Forum, ForumRaw } from "../field/Forum";
/**
* 准备请求响应
*/
export declare class PrepareBody {
/**
* 发帖动作
*/
action: PostAction;
/**
* todo 地址?
*/
address: any;
/**
* 上传地址
*/
attachUrl: string;
/**
* 附件信息
*/
attachments?: Attachment[];
/**
* 校验码,准备请求中拿到的同名字段
*/
auth: string;
/**
* 回复正文,编辑、回复、引用时这里会有数据
*/
content?: string | null;
/**
* 超出编辑时限后正文将被放到这个字段里
*/
contentOriginal?: string | null;
/**
* 版面id
*/
forumId: number;
/**
* 是否为版主
*/
moderator: boolean;
/**
* 是否添加到末尾
*/
modifyAppend: boolean;
/**
* 回复id
*/
replyId: number;
/**
* 类型
*/
replyType?: number;
/**
* 标题
*/
title?: string | null;
/**
* 主题id
*/
topicId: number;
/**
* 类型
*/
topicType?: number;
/**
* 当前用户
*/
currentUser: CurrentUser;
/**
* 版面信息
*/
forum: Forum;
/**
* 是否为隐藏回复
*/
hidden: boolean;
constructor(raw: PrepareBodyRaw);
}
export interface PrepareBodyRaw {
/**
* 发帖动作
*/
action: PostAction;
/**
* todo 地址?
*/
address: any;
/**
* 上传地址
*/
attach_url: string;
/**
* 附件信息
*/
attachs?: AttachmentRaw[];
/**
* 校验码,准备请求中拿到的同名字段
*/
auth: string;
/**
* 回复正文,编辑、回复、引用时这里会有数据
*/
content?: string;
/**
* 超出编辑时限后正文将被放到这个字段里
*/
content_org?: string;
/**
* 版面id
*/
fid: number;
/**
* 是否为隐藏的回复
*/
if_hidden?: "1";
/**
* 是否为版主
*/
if_moderator: number;
/**
* 是否添加到末尾
*/
modify_append: string | number;
/**
* 回复id
*/
pid: number;
/**
* 类型
*/
post_type: number;
/**
* 标题
*/
subject?: string;
/**
* 主题id
*/
tid: number;
/**
* 类型
*/
type: number;
/**
* 当前用户
*/
__CU: CurrentUser;
/**
* 版面信息
*/
__F: ForumRaw;
}