mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
feat: 添加评论功能的客户端信息显示选项,更新相关接口和组件
This commit is contained in:
@ -121,6 +121,7 @@ func (cr *CommentRepo) CreateComment(comment *model.Comment) (uint, error) {
|
||||
})
|
||||
return commentID, err
|
||||
}
|
||||
|
||||
func (cr *CommentRepo) UpdateComment(comment *model.Comment) error {
|
||||
if comment.ID == 0 {
|
||||
return errs.New(http.StatusBadRequest, "invalid comment ID", nil)
|
||||
|
Reference in New Issue
Block a user