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/impl/comment_reply_service_impl.go
2024-09-29 15:46:35 +08:00

33 lines
1.0 KiB
Go

package impl
import (
"schisandra-cloud-album/dao/impl"
"schisandra-cloud-album/model"
)
var commentReplyDao = impl.CommentReplyDaoImpl{}
type CommentReplyServiceImpl struct{}
// CreateCommentReplyService 创建评论回复
func (CommentReplyServiceImpl) CreateCommentReplyService(comment *model.ScaCommentReply) error {
return commentReplyDao.CreateCommentReply(comment)
}
// UpdateCommentReplyCountService 更新评论回复数
func (CommentReplyServiceImpl) UpdateCommentReplyCountService(replyId int64) error {
return commentReplyDao.UpdateCommentReplyCount(replyId)
}
// UpdateCommentLikesCountService 更新评论点赞数
func (CommentReplyServiceImpl) UpdateCommentLikesCountService(commentId int64, topicId string) error {
return commentReplyDao.UpdateCommentLikesCount(commentId, topicId)
}
// DecrementCommentLikesCountService 减少评论点赞数
func (CommentReplyServiceImpl) DecrementCommentLikesCountService(commentId int64, topicId string) error {
return commentReplyDao.DecrementCommentLikesCount(commentId, topicId)
}