This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
schisandra-cloud-album/service/comment_reply_service/comment_reply_service.go
2024-09-19 18:44:53 +08:00

15 lines
317 B
Go

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
}