Skip to content

Author 作者体系插件 ​

Author 插件提供跨内容类型的创作者画像层,支持作者入驻申请、等级体系、关注粉丝、冗余计数等能力。CMS/Flash/Community 等插件可共用作者画像。

插件信息 ​

属性值
名称author
版本0.1.0
描述作者体系模块 -- 入驻申请/等级体系/事件驱动计数
管理面板是
存储权限是(沙箱前缀 author)

核心能力 ​

能力说明
入驻申请作者提交申请,管理员审核
等级体系L0-L3 四级认证(未认证/基础/中级/高级)
关注粉丝复用 user_follows 表,不自建
冗余计数文章数/粉丝数/关注数冗余存储,事件驱动更新
跨插件复用CMS/Flash/Community 共用作者画像

事件 ​

事件名触发时机
author.application.submitted作者提交入驻申请
author.application.approved申请审核通过
author.application.rejected申请审核拒绝
author.profile.updated作者资料更新
author.level.changed等级变更

数据模型 ​

AuthorProfile(作者画像) ​

表名: author_profiles

字段类型说明
(BaseModel)embeddedID, TenantID, CreatorID, CreatedAt, UpdatedAt, DeletedAt
UserIDstring关联用户 ID
PenNamestring(200)笔名
Biotext个人简介
Avatarstring(500)头像 URL
Domainstring(200)擅长领域
CertLevelint认证等级(0=L0未认证, 1=L1基础, 2=L2中级, 3=L3高级)
ArticleCountint文章数(冗余)
FollowerCountint粉丝数(冗余)
FollowingCountint关注数(冗余)

AuthorApplication(入驻申请) ​

表名: author_applications

字段类型说明
(BaseModel)embeddedID, TenantID, CreatorID, CreatedAt, UpdatedAt, DeletedAt
UserIDstring申请用户 ID
PenNamestring(200)申请笔名
Biotext申请简介
Statusstring(20)状态(pending/approved/rejected)
ReviewNotetext审核备注
ReviewedAttimestamp审核时间
ReviewedBystring审核人 ID

API 端点 ​

公开接口 ​

GET /api/v1/authors              # 作者列表
GET /api/v1/authors/:id          # 作者详情
GET /api/v1/authors/:id/articles # 作者文章列表

管理接口(需认证) ​

GET    /api/v1/admin/authors              # 作者列表(管理)
GET    /api/v1/admin/authors/:id          # 作者详情(管理)
PUT    /api/v1/admin/authors/:id          # 更新作者资料
POST   /api/v1/admin/author-applications  # 审核申请
GET    /api/v1/admin/author-applications  # 申请列表

C 端接口(需认证) ​

POST /api/v1/me/author-application  # 提交入驻申请
GET  /api/v1/me/author-profile      # 获取我的作者资料

权限点 ​

权限说明
author.read查看作者
author.write编辑作者
author.application.review审核入驻申请

与其他模块关系 ​

模块关系
user作者关联用户,复用 user_follows
cms文章关联作者,事件驱动计数
flash快讯可关联作者
community帖子可关联作者

Released under the Apache 2.0 License.