Class CommentService
java.lang.Object
es.kukenan.smartfi.microservice.backoffice.service.CommentService
Comment related services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CommentRepositoryComment repository.private UserRepositoryUser repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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.
-
Field Details
-
commentRepository
Comment repository. -
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 informationuserId- user identifier- Returns:
- comment detail.
-