Skip to content

posts 帖子主表

字段名字段类型字段注释默认值可空备注
idbigint UNSIGNED帖子 IDNO自动递增
pidvarchar(32)对外公开 IDNO唯一值
user_idbigint UNSIGNED发布者 IDNO关联字段 users->id
quoted_post_idbigint UNSIGNED引用的帖子 ID0NO0 代表无
group_idint UNSIGNED小组 ID0NO关联字段 groups->id
geotag_idint UNSIGNED地理 ID0NO关联字段 geotags->id
titlevarchar(255)标题YES
contentlongtext内容YES
lang_tagvarchar(16)语言标签YES
is_markdowntinyint UNSIGNED内容是否为 MD 格式0NO0.否 / 1.是
is_anonymoustinyint UNSIGNED是否匿名0NO0.否 / 1.是
sticky_statetinyint UNSIGNED置顶状态1NO1.否 / 2.小组页置顶 / 3.全局置顶
digest_statetinyint UNSIGNED精华状态1NO1.否 / 2.普通精华 / 3.高级精华
digested_attimestamp精华时间YES设为精华的时间
view_countint UNSIGNED查看数0NO由插件记录
like_countint UNSIGNED赞数0NO有多少用户赞了该帖子
dislike_countint UNSIGNED踩数0NO有多少用户踩了该帖子
follow_countint UNSIGNED关注数0NO有多少用户关注了(收藏)该帖子
block_countint UNSIGNED屏蔽数0NO有多少用户屏蔽了(不感兴趣)该帖子
comment_countint UNSIGNED评论数0NO该帖子有多少条评论,包括评论二级回复
comment_digest_countint UNSIGNED评论精华总数0NO该帖子评论的精华总数
comment_like_countint UNSIGNED评论赞数0NO所有评论被赞总数
comment_dislike_countint UNSIGNED评论踩数0NO所有评论被踩总数
comment_follow_countint UNSIGNED评论关注数0NO所有评论被关注总数
comment_block_countint UNSIGNED评论屏蔽数0NO所有评论被屏蔽总数
quote_countint UNSIGNED帖子引用数0NO引用它的帖子总数
edit_countsmallint UNSIGNED编辑次数0NO共编辑了几次
last_edit_attimestamp编辑时间YES如果发表后可以编辑,此处记录编辑时间
last_comment_attimestamp评论时间YES最新一条评论的时间
more_infojson更多信息字段YES
permissionsjson权限参数YES
rank_statetinyint UNSIGNED等级状态1NO1.未设置
is_enabledtinyint UNSIGNED是否有效1NO0.无效(仅自己可见) / 1.有效
created_attimestamp发表时间useCurrentNO比如 MySQL 默认值为 CURRENT_TIMESTAMP
updated_attimestamp更新时间YES
deleted_attimestamp删除时间YES

精华说明

普通精华

  • 常规曝光
  • 出现在关注了该小组的用户时间线里

开启关注“小组”功能后,关注页信息流默认只展示“小组”下设为精华的内容

高级精华

  • 常规曝光
  • 出现在所有用户时间线里

权限参数介绍

json
{
    "editor": {
        "isAppEditor": "Boolean / 是否仅在应用中编辑",
        "editorFskey": "String / 编辑器 fskey"
    },
    "contentWritingDirection": "String / 内容写作方向", // ltr or rtl
    "canDelete": "Boolean / 作者是否有权删除",
    "readConfig": {
        "isReadLocked": "Boolean / 是否需要阅读授权",
        "previewPercentage": "Number / 无权时内容显示比例",
        "whitelist": {
            "users": "Array / 白名单用户 ID",
            "roles": "Array / 白名单角色 ID"
        },
        "buttonName": {
            "语言标签": "String / 无权时按钮文字",
            "en": "Name"
        },
        "appFskey": "String / 授权应用 fskey"
    },
    "associatedUserListConfig": {
        "hasUserList": "Boolean / 是否有关联用户列表",
        "userListName": {
            "语言标签": "String / 用户列表名称",
            "en": "Name"
        },
        "appFskey": "String / 用户列表应用 fskey"
    },
    "commentConfig": {
        "visible": "Boolean / 评论是否可见(不可见对所有人隐藏,包括作者)",
        "policy": "Number / 谁可以评论 1.所有人 2.你关注的人 3.你关注的人和已认证的人 4.不允许所有人 5.仅限你提及到的用户",
        "privacy": "String / public (公开) 或 private(私有则仅评论作者和帖子作者可见)",
        "action": {
            "hasActionButton": "Boolean / 评论是否有按钮",
            "buttonName": {
                "语言标签": "String / 按钮名称",
                "en": "Name"
            },
            "buttonStyle": "String / 按钮风格 primary secondary success danger warning info",
            "appFskey": "String / 配置应用 fskey"
        }
    },
}

Released under the Apache-2.0 License