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 TypeMethodDescriptionvoid
deleteReply
(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) void
incrementLikeCount
(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:
createReply
in interfaceReplyService
-
updateReply
- Specified by:
updateReply
in interfaceReplyService
-
deleteReply
- Specified by:
deleteReply
in interfaceReplyService
-
getReply
- Specified by:
getReply
in interfaceReplyService
-
getRepliesByFeedback
public org.springframework.data.domain.Page<ReplyEntity> getRepliesByFeedback(Long feedbackId, org.springframework.data.domain.Pageable pageable) - Specified by:
getRepliesByFeedback
in interfaceReplyService
-
getRepliesByUser
public org.springframework.data.domain.Page<ReplyEntity> getRepliesByUser(Long userId, org.springframework.data.domain.Pageable pageable) - Specified by:
getRepliesByUser
in interfaceReplyService
-
incrementLikeCount
- Specified by:
incrementLikeCount
in interfaceReplyService
-