-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: add comment API #566
Conversation
顺便请求一下.可否告知一下关于Mock的具体流程,以前一直都是直接本地跑所以对于Mock的自动生成有一点没懂( |
吐槽箱就是条目收藏的评论字段 |
wip的话在标题里加上 |
好的,明白了 |
这是 #526, 可以链接一下? |
refactor: refactor API routes with bangumi#526
@trim21 目前写的这几个API可以审一下吗?我对echo不怎么熟悉,怕写错( |
fix: fix comment's reply id
@trim21 好了 |
暂时先不允许删除/修改评论吧,这个还有用户权限控制的问题 |
先解决下冲突 |
refactor: temporarily remove the API related to deleting comments and resolve a conflict
@@ -56,13 +56,15 @@ require ( | |||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | |||
github.com/coreos/go-semver v0.3.0 // indirect | |||
github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534 // indirect | |||
github.com/daixiang0/gci v0.13.4 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个怎么变成依赖了,用golangci-lint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我本地出了点问题,不变成依赖没办法运行,稍后去掉
@trim21 可否开放一下 |
啥叫开放一下,dev-env里面没有?还是什么其他情况? |
里面没有任何测试数据 |
没有数据,我没办法测试get方法,所以我现在也不知道怎么写测试 |
等会我导出一下 |
好的,感谢您) |
询问一下好了嘛) |
bangumi.chii_subject_posts 应该是条目讨论帖? |
对的 |
你找个沙盒条目发点讨论贴吧?现在几个沙盒条目都没有讨论贴,没什么数据可导出( |
沙盒条目可以给个导航嘛( |
|
有个建议是提供分级评论的接口
目前的接口混合多级评论进行分页,很难进行实际应用 |
为 Subject Post 和 Index Comment 增加了API与后端逻辑。
ref: #526