Skip to content

feat: 帖子浏览量统计#29

Merged
aba2222 merged 2 commits into
aba2222:mainfrom
xiokuai:feature/post-view-count
Feb 23, 2026
Merged

feat: 帖子浏览量统计#29
aba2222 merged 2 commits into
aba2222:mainfrom
xiokuai:feature/post-view-count

Conversation

@xiokuai
Copy link
Copy Markdown
Contributor

@xiokuai xiokuai commented Feb 23, 2026

Summary

  • Post 模型新增 views 字段,每次访问帖子详情页自动 +1
  • 帖子列表和详情页显示浏览量(眼睛图标)
  • 使用 F() 表达式避免竞态条件

Post 模型新增 views 字段,每次访问帖子详情页自动 +1,在帖子列表和详情页显示浏览量
@aba2222 aba2222 merged commit 8dde012 into aba2222:main Feb 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants