add comment and reply framework

This commit is contained in:
landaiqing
2024-09-19 18:44:53 +08:00
parent ef5d7daa10
commit 8d5d918a7d
11 changed files with 80 additions and 20 deletions

View File

@@ -1 +1,14 @@
package comment_reply_service
import (
"schisandra-cloud-album/global"
"schisandra-cloud-album/model"
)
// CreateCommentReply 创建评论
func (CommentReplyService) CreateCommentReply(comment *model.ScaCommentReply) error {
if err := global.DB.Create(&comment).Error; err != nil {
return err
}
return nil
}