-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: 과목 생성 api 구현 #26
Conversation
# Conflicts: # src/main/kotlin/com/yourssu/soongpt/domain/course/application/CourseController.kt # src/main/kotlin/com/yourssu/soongpt/domain/course/business/CourseService.kt # src/main/kotlin/com/yourssu/soongpt/domain/course/implement/CourseWriter.kt
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.
고생하셨습니다. 스크럼에서 피드백 드릴게요.
src/main/kotlin/com/yourssu/soongpt/domain/course/application/CourseController.kt
Show resolved
Hide resolved
val classification = when (classificationStr) { | ||
"전필", "전기" -> Classification.MAJOR_REQUIRED | ||
"전선" -> Classification.MAJOR_ELECTIVE | ||
"교필" -> Classification.GENERAL_REQUIRED | ||
"교선" -> Classification.GENERAL_ELECTIVE | ||
"채플" -> Classification.CHAPEL | ||
else -> continue |
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.
Classification 클래스에서 companion object로 valueOf 정의해서 구현하는건 어떨까요?
private fun parseWeek(day: String): Week { | ||
return when(day) { | ||
"월" -> Week.MONDAY | ||
"화" -> Week.TUESDAY | ||
"수" -> Week.WEDNESDAY | ||
"목" -> Week.THURSDAY | ||
"금" -> Week.FRIDAY | ||
"토" -> Week.SATURDAY | ||
"일" -> Week.SUNDAY | ||
else -> throw IllegalArgumentException("알 수 없는 요일 : $day") | ||
} | ||
} |
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.
여기도요!!
connectTimeout: 5000 | ||
loggerLevel: full | ||
defaultRequestHeaders: | ||
Authorization: Bearer accessToken |
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.
슬랙 엑세스 토큰을 넣어야해서 환경변수로 만들어주세요.
Key changes
To Reviewers