Package com.bytedesk.voc.reply
Class ReplyServiceImpl
java.lang.Object
com.bytedesk.voc.reply.ReplyServiceImpl
- All Implemented Interfaces:
ReplyService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteReply(Long replyId) org.springframework.data.domain.Page<ReplyEntity>getRepliesByFeedback(Long feedbackId, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<ReplyEntity>getRepliesByUser(Long userId, org.springframework.data.domain.Pageable pageable) voidincrementLikeCount(Long replyId) updateReply(Long replyId, String content)
-
Field Details
-
replyRepository
-
feedbackService
-
-
Constructor Details
-
ReplyServiceImpl
public ReplyServiceImpl()
-
-
Method Details
-
createReply
@Transactional public ReplyEntity createReply(String content, Long feedbackId, Long userId, Long parentId, Boolean isOfficial) - Specified by:
createReplyin interfaceReplyService
-
updateReply
- Specified by:
updateReplyin interfaceReplyService
-
deleteReply
- Specified by:
deleteReplyin interfaceReplyService
-
getReply
- Specified by:
getReplyin interfaceReplyService
-
getRepliesByFeedback
public org.springframework.data.domain.Page<ReplyEntity> getRepliesByFeedback(Long feedbackId, org.springframework.data.domain.Pageable pageable) - Specified by:
getRepliesByFeedbackin interfaceReplyService
-
getRepliesByUser
public org.springframework.data.domain.Page<ReplyEntity> getRepliesByUser(Long userId, org.springframework.data.domain.Pageable pageable) - Specified by:
getRepliesByUserin interfaceReplyService
-
incrementLikeCount
- Specified by:
incrementLikeCountin interfaceReplyService
-