-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backlogitem and comment crud #12
Conversation
|
||
@Override | ||
@PutMapping(BACKLOG_ITEM_COMMENT_UPDATE_MAPPING) | ||
public BacklogItemCommentResponse updateComment( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
BacklogItemCommentResponse deleteComment(long commentId); | ||
|
||
BacklogItemCommentResponse getComment(long commentId); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
co tu się stało XD ?
|
||
@Override | ||
@GetMapping(BACKLOG_ITEM_GET_MAPPING) | ||
public BacklogItemResponse getById(@RequestParam long id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
private static final String SAVING_AND_RETURNING_RESPONSE_OF = "Saving and returning response of: {}"; | ||
|
||
@Override | ||
public BacklogItemResponse getById(long id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
private final ProjectMemberRepository projectMemberRepository; | ||
private final BacklogItemMapper backlogItemMapper; | ||
|
||
private static final String GETTING_BY_ID = "Getting {} by id: {}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weź to wywal do jakiejś klasy z constantami bo za dużo tu tego
log.info(RETURNING_RESPONSE_OF, backlogItem); | ||
|
||
return backlogItemMapper.backlogItemToBacklogItemDetails(backlogItem); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ofc te finale i buildery to zastosuj tutaj do każdego
|
||
public interface BacklogItemController { | ||
|
||
public BacklogItemResponse getById(long id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
po co w interfejsie dodajesz publici. Wszystko co jest w interfejsie musi być publiczne by basic.
|
||
public interface BacklogItemService { | ||
|
||
public BacklogItemResponse getById(long id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tutaj to samo po co public
@Mapper(componentModel = "spring") | ||
public interface BacklogItemCommentMapper { | ||
|
||
public BacklogItemCommentResponse toBacklogItemCommentResponse(BacklogItemComment backlogItemComment); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
po co public
@Mapper(componentModel = "spring", uses = SprintMapper.class) | ||
public interface BacklogItemMapper { | ||
|
||
public BacklogItemResponse backlogItemToBacklogItemResponse(BacklogItem backlogItem); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
po co public
No description provided.