Skip to content

feat(forum): 论坛话题/评论系统 + 管理后台 - #7

Merged
yyyCode merged 3 commits into
masterfrom
dev
Jul 30, 2026
Merged

feat(forum): 论坛话题/评论系统 + 管理后台#7
yyyCode merged 3 commits into
masterfrom
dev

Conversation

@yyyCode

@yyyCode yyyCode commented Jul 30, 2026

Copy link
Copy Markdown
Owner

变更类型

  • 新功能

变更说明

新增论坛功能模块:

  • 数据库: forum_topics + forum_comments 两张表,含 Mock 数据
  • 后端: 完整的实体/服务/控制器,公开 6 个 API + 管理后台 3 个 API
  • 前端: 论坛列表页、话题详情页(Markdown + 评论)、发帖页、控制台管理页
  • 管理员可隐藏/恢复话题,用户可删除自己的评论
  • 顶部栏"论坛"按钮已接入路由

测试计划

  • 后端编译通过 (mvn compile)
  • 前端构建通过 (npm run build)

部署注意事项

  • 需在数据库执行 sql/forum.sql 建表
  • 可选执行 sql/forum-mock-data.sql 导入测试数据

🤖 Generated with Claude Code

yyyCode and others added 3 commits July 31, 2026 06:13
- Add forum_topics and forum_comments tables with migration SQL and mock data
- Add ForumTopic and ForumComment entities, enums, mappers, DTOs
- Add ForumService with CRUD, hide/publish, comment operations
- Add public ForumController (6 endpoints) and ForumAdminController (3 endpoints)
- Add ForumListView, ForumTopicView, ForumComposeView frontend pages
- Add ConsoleForumView for admin topic management
- Update router, ConsoleLayout sidebar, and BlogHeader forum link
- Forum link in header now navigates to /forum

Co-Authored-By: Claude <noreply@anthropic.com>
FK references to users table fail when users table doesn't exist yet.
Application layer ensures data consistency.

Co-Authored-By: Claude <noreply@anthropic.com>
@yyyCode
yyyCode merged commit 7c3a590 into master Jul 30, 2026
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.

1 participant