Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: CMS 社区 #280

Open
6 tasks
axetroy opened this issue May 28, 2020 · 0 comments
Open
6 tasks

TODO: CMS 社区 #280

axetroy opened this issue May 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@axetroy
Copy link
Owner

axetroy commented May 28, 2020

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

用户端接口

		{
			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: 把帖子从收藏夹中删除
		}
@axetroy axetroy added the enhancement New feature or request label May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant