@Service
@Transactional
public class CommentService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private AuthService |
authService |
private CommentMapper |
commentMapper |
private CommentRepo |
commentRepository |
private MailContentBuilder |
mailContentBuilder |
private MailService |
mailService |
private static java.lang.String |
POST_URL |
private PostRepo |
postRepository |
private UserRepo |
userRepository |
Constructor and Description |
---|
CommentService() |
Modifier and Type | Method and Description |
---|---|
void |
createComment(CommentsDto commentsDto) |
java.util.List<CommentsDto> |
getCommentByPost(java.lang.Long postId) |
java.util.List<CommentsDto> |
getCommentsByUser(java.lang.String userName) |
private void |
sendCommentNotification(java.lang.String message,
User user) |
private static final java.lang.String POST_URL
private final CommentMapper commentMapper
private final PostRepo postRepository
private final CommentRepo commentRepository
private final UserRepo userRepository
private final AuthService authService
private final MailContentBuilder mailContentBuilder
private final MailService mailService
public void createComment(CommentsDto commentsDto)
public java.util.List<CommentsDto> getCommentByPost(java.lang.Long postId)
public java.util.List<CommentsDto> getCommentsByUser(java.lang.String userName)
private void sendCommentNotification(java.lang.String message, User user)