Skip to content
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

도서 추천 api #105

Merged
merged 9 commits into from
Apr 23, 2024
Merged

도서 추천 api #105

merged 9 commits into from
Apr 23, 2024

Conversation

ta2ye0n
Copy link
Contributor

@ta2ye0n ta2ye0n commented Apr 23, 2024

💡 개요

도서 추천 api를 구현했습니다

📃 작업내용

도서 추천 api를 구현했습니다
novel / essay 두 개의 타입을 가지고 있고
선생님 또는 도서부만 작성할 수 있습니다

🔀 변경사항

🙋‍♂️ 질문사항

⚗️ 사용법

🎸 기타

@ta2ye0n ta2ye0n self-assigned this Apr 23, 2024
@ta2ye0n ta2ye0n linked an issue Apr 23, 2024 that may be closed by this pull request

@NotBlank
private String author;
}
Copy link
Member

Choose a reason for hiding this comment

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

제가 알기론 숫자가 들어가면 @NotBlank가 적합하지 않는 걸로 아는데 맞나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

문자열이라 상관없는거 같아요

Comment on lines 29 to 33
}

recRepository.save(recConverter.toEntity(writeRecRequest, type));
}
}
Copy link
Member

Choose a reason for hiding this comment

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

저희 코드 스타일이 컨버터로 변환하고 그걸 객체를 따로 만들어서 save하는 느낌인걸로 알고 있어요
코드를 일관성있게 하면 좋을 거 같아요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

01ac3a2
수정했습니다

@@ -81,6 +81,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// rank
.requestMatchers(HttpMethod.GET, "/api/v2/rank").authenticated()

// recommend
.requestMatchers(HttpMethod.POST, "/api/v2/recommend").hasAnyAuthority(Authority.ROLE_TEACHER.name(), Authority.ROLE_STUDENT.name())

Copy link
Member

@Umjiseung Umjiseung Apr 23, 2024

Choose a reason for hiding this comment

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

권한 허용이 잘못 되어있는거같은데요? 수정부탁드려요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

e36184f
수정했습니다

Copy link
Member

@Umjiseung Umjiseung left a comment

Choose a reason for hiding this comment

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

수고하셨어요

@ta2ye0n ta2ye0n merged commit bc490e1 into develop Apr 23, 2024
1 check passed
@ta2ye0n ta2ye0n deleted the 104-recommend-book-api branch April 23, 2024 07:57
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.

도서 추천 api
2 participants