🎨 update project structure
This commit is contained in:
32
service/impl/comment_reply_service_impl.go
Normal file
32
service/impl/comment_reply_service_impl.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user