FastComments.com
Here you can edit and run the code snippet from our documentation.
Example Code Snippet "WebhookComment 对象"
interface WebhookComment { /** 评论的 id。 **/ id: string /** 标识评论线程的 id 或 URL。已规范化。 **/ urlId: string /** 指向评论所在位置的 URL。 **/ url: string | null /** 发表评论的用户 id。如果是 SSO,则带有租户 id 前缀。 **/ userId: string | null /** 发表评论的用户的邮箱。 **/ commenterEmail: string | null /** 在评论组件中显示的用户名。使用 SSO 时,可以是 displayName。 **/ commenterName: string /** 原始评论文本。 **/ comment: string /** 解析后的评论文本。 **/ commentHTML: string /** 评论的外部 id。 **/ externalId: string | null /** 父评论的 id。 **/ parentId: string | null /** 发表评论时的 UTC 日期。 **/ date: UTC_ISO_DateString /** 投票的总 karma(赞 - 踩)。 **/ votes: number votesUp: number votesDown: number /** 如果用户评论时已登录、或已验证评论、或在评论时验证了会话,则为 true。 **/ verified: boolean /** 评论被验证时的 UTC 日期。 **/ verifiedDate: UTC_ISO_DateString | null /** 版主是否已将该评论标记为已审核。 **/ reviewed: boolean /** 头像的位置或 base64 编码。仅当 SSO 传入的值是 base64 时才会是 base64。 **/ avatarSrc: string | null /** 评论是被手动还是自动标记为垃圾评论? **/ isSpam: boolean /** 评论是否被自动标记为垃圾评论? **/ aiDeterminedSpam: boolean /** 评论中是否包含图片? **/ hasImages: boolean /** 按 "Most Relevant"(最相关)排序方向评论所在的页码。 **/ pageNumber: number | null /** 按 "Oldest First"(最早优先)排序方向评论所在的页码。 **/ pageNumberOF: number | null /** 按 "Newest First"(最新优先)排序方向评论所在的页码。 **/ pageNumberNF: number | null /** 评论是被自动还是手动批准的? **/ approved: boolean /** 用户撰写评论时的区域设置代码(格式:en_us)。 **/ locale: string | null /** 评论中成功解析的 @mentions。没有时为空。 **/ mentions: CommentUserMention[] /** 评论所属的域名。 **/ domain: string | null /** 与此评论关联的审核组 id。没有时为空。 **/ moderationGroupIds: string[] /** 此评论中评论者名称旁显示的徽章,以事件创建时为准。没有时为空。 **/ badges: CommentUserBadgeInfo[] }
Result