java.lang.Object
es.kukenan.smartfi.microservice.backoffice.service.CommentService

@Service public class CommentService extends Object
Comment related services.
  • Field Details

    • commentRepository

      @Autowired private CommentRepository commentRepository
      Comment repository.
    • userRepository

      @Autowired private UserRepository userRepository
      User repository.
  • Constructor Details

    • CommentService

      public CommentService()
  • Method Details

    • saveComment

      public org.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.user.CommentDto>>> saveComment(es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.user.CommentRequestDto requestDto, String userId)
      Save new comment.
      Parameters:
      requestDto - comment information
      userId - user identifier
      Returns:
      comment detail.