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

19 lines
877 B
Go

package dao
import "schisandra-cloud-album/model"
type CommentReplyDao interface {
// CreateCommentReply 创建评论回复
CreateCommentReply(comment *model.ScaCommentReply) error
// GetCommentListOrderByCreatedTimeDesc 获取评论列表 按创建时间排序
GetCommentListOrderByCreatedTimeDesc(topicID uint, page, pageSize int) ([]model.ScaCommentReply, error)
// GetCommentListOrderByLikesDesc 获取评论列表按点赞数排序
GetCommentListOrderByLikesDesc(topicID uint, page, pageSize int) ([]model.ScaCommentReply, error)
// UpdateCommentReplyCount 更新评论回复数
UpdateCommentReplyCount(commentID int64) error
// UpdateCommentLikesCount 更新评论点赞数
UpdateCommentLikesCount(commentID int64, topicID string) error
// DecrementCommentLikesCount 减少评论点赞数
DecrementCommentLikesCount(commentID int64, topicID string) error
}