🎨 update project structure

This commit is contained in:
landaiqing
2024-09-29 15:46:35 +08:00
parent 2769467ce2
commit 87f1ff6961
85 changed files with 693 additions and 431 deletions

View File

@@ -0,0 +1,32 @@
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)
}