axetroy / axetroy/go-server

TODO: CMS 社区

Open
#280 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
242
Forks
35
PR merge metrics
No merged PRs in 30d

Description

- [ ] 主题 topic
- [ ] 发帖 post
- [ ] 评论 comment
- [ ] 点赞 like
- [ ] 收藏 favorites
- [ ] 置顶 top

用户端接口

```golang
{
cmsRouter := v1.Party("/cms")
cmsRouter.Get("/topic", area.GetProvinces) // TODO: 获取话题/主题
cmsRouter.Post("/post/topic/{topic_id}", area.GetProvinces) // TODO: 在 xx 话题下发帖
cmsRouter.Delete("/post/{post_id}", area.GetProvinces) // TODO: 删除帖子
cmsRouter.Post("/post/{post_id}/comment", area.GetProvinces) // TODO: 创建评论
cmsRouter.Delete("/post/{post_id}/comment", area.GetProvinces) // TODO: 创建评论
cmsRouter.Put("/post/{post_id}/like", area.GetProvinces) // TODO: 顶帖子
cmsRouter.Put("/post/{post_id}/unlike", area.GetProvinces) // TODO: 踩帖子 👎
cmsRouter.Put("/post/{post_id}/comment/{comment_id}/like", area.GetProvinces) // TODO: 顶评论
cmsRouter.Put("/post/{post_id}/comment/{comment_id}/unlike", area.GetProvinces) // TODO: 踩评论 👎
cmsRouter.Get("/favourite", area.GetProvinces) // TODO: 获取收藏夹列表
cmsRouter.Post("/favourite", area.GetProvinces) // TODO: 创建收藏夹
cmsRouter.Get("/favourite/{id}", area.GetProvinces) // TODO: 获取收藏夹详情
cmsRouter.Delete("/favourite/{id}", area.GetProvinces) // TODO: 删除收藏夹
cmsRouter.Put("/favourite/{id}", area.GetProvinces) // TODO: 更新收藏夹
cmsRouter.Post("/favourite/{id}/post", area.GetProvinces) // TODO: 把帖子加入收藏夹
cmsRouter.Delete("/favourite/{id}/post", area.GetProvinces) // TODO: 把帖子从收藏夹中删除
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the CMS route block in the issue and inspect the existing v1 routing and the area.GetProvinces placeholders it references. Define the scope for topics, posts, comments, likes, and favorites before locating their handlers and data models. Done means the listed CMS operations are implemented with their intended behavior, rather than remaining TODO routes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.