数据结构优化

This commit is contained in:
李琦
2026-01-20 15:43:17 +08:00
parent 1ec015217e
commit 8460820f58
7 changed files with 327 additions and 65 deletions

View File

@@ -56,6 +56,7 @@ func main() {
// 博客路由
api.GET("/posts", handlers.GetPosts)
api.GET("/posts/:id", handlers.GetPost)
api.GET("/posts/:id/recommendations", handlers.GetRecommendedPosts)
// 分类路由
api.GET("/categories", handlers.GetCategories)