🎨 update code structure

This commit is contained in:
landaiqing
2024-09-29 17:08:18 +08:00
parent 87f1ff6961
commit 4ec1ea40bb
23 changed files with 672 additions and 761 deletions

View File

@@ -1,10 +1,19 @@
package service
import "schisandra-cloud-album/model"
import (
"schisandra-cloud-album/model"
"schisandra-cloud-album/service/impl"
)
type CommentReplyService interface {
CreateCommentReplyService(comment *model.ScaCommentReply) error
UpdateCommentReplyCountService(replyId int64) error
UpdateCommentLikesCountService(commentId int64, topicId string) error
DecrementCommentLikesCountService(commentId int64, topicId string) error
// GetCommentReplyService 获取评论回复
GetCommentReplyService(uid string, topicId string, commentId int64, pageNum int, size int) *impl.CommentResponse
// GetCommentListService 获取评论列表
GetCommentListService(uid string, topicId string, pageNum int, size int, isHot bool) *impl.CommentResponse
// CommentLikeService 评论点赞
CommentLikeService(uid string, commentId int64, topicId string) bool
// CommentDislikeService 评论取消点赞
CommentDislikeService(uid string, commentId int64, topicId string) bool
// SubmitCommentService 提交评论
SubmitCommentService(comment *model.ScaCommentReply, topicId string, uid string, images []string) bool
}