Skip to content

Feature comments#8

Open
Ilusha92 wants to merge 6 commits intomainfrom
feature_comments
Open

Feature comments#8
Ilusha92 wants to merge 6 commits intomainfrom
feature_comments

Conversation

@Ilusha92
Copy link
Owner

@Ilusha92 Ilusha92 commented Jun 2, 2023

No description provided.

Copy link

@avfyodorov avfyodorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добрый день!
Критических замечаний нет, есть пара небольших уточнений, но они несущественны..
Дипломный проект принят.
Поздравляю! Дальнейших успехов.

@GetMapping
@ResponseStatus(HttpStatus.OK)
public List<CommentDto> getCommentsByAdmin(
@RequestParam(required = false, defaultValue = MainCommonUtils.PAGE_DEFAULT_FROM) @PositiveOrZero Integer from,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaultValue уже подразумевает, что параметра может и не быть. Поэтому вполне можно не писать required = false


@Override
@Transactional
public CommentDto patchByPrivate(Long userId, Long commentId, NewCommentDto newCommentDto) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно было бы ограничить возможность редактирования комментария, например, в течение 2 часов.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments