-
Notifications
You must be signed in to change notification settings - Fork 4
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: 학점 조회 기능 추가 #366
feat: 학점 조회 기능 추가 #366
Conversation
fix: presigned url 에만 https 프로토콜 적용되도록 수정
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.
수고하셨습니다!
@@ -231,5 +238,17 @@ public Map<String, Object> deleteTimeTableById(int id) throws Exception { | |||
}}; | |||
} | |||
|
|||
private int calculateTotalGrades(int userId){ |
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.
A
private int calculateTotalGrades(int userId){ | |
private int calculateTotalGrades(int userId) { |
띄어쓰기 해주면 좋을 것 같아요!
put("이번학기학점", currentGrades); | ||
put("전체학기학점", calculateTotalGrades(user.getId())); |
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.
C
다른 api처럼 영어로 응답하는게 좋을 것 같아요!
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.
수고하셨습니다!
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.
고생하셨어요~ 코멘트 확인해주세요!
Map<String, Object> retMap = new HashMap<String, Object>() {{ | ||
put("timetable", timetables); | ||
put("semester", semester); | ||
put("grades", currentGrades); |
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.
C
grade보다는 credit을 사용하는 것은 어떨까요? crade는 학점보다는 성적 느낌이 조금 큰 것 같아요!
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.
감사합니다. 근데 DB에는 이수학점이 grade로 돼있는데.. 관습상 grade로 통일하는건 어떤가요..?
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.
앗..! 그렇다면 그냥 grade를 사용하는 게 좋아보이네요!
Map<String, Object> retMap = new HashMap<String, Object>() {{ | ||
put("timetable", timetables); | ||
put("semester", semester); | ||
put("grades", currentGrades); | ||
put("total_grades", calculateTotalGrades(user.getId())); |
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.
C
위와 동일합니다
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.
고생하셨어요~ 리뷰 확인해주세요!
-> ###을 사용했는데도 글씨가 안 커져요 ㅜㅜㅜ
▶ Request
Content
#365
as-is
시간표 조회시 전체학점과 해당학기학점 반환
to-be
TimeTableServiceIml에서 학기조회를 통해 해당 유저의 학점을 계산
✅ Check List
pom.xml
) 변경이 일어나지 않았는지📸 API Document ScreenShot
🧪 Test
2개의 학기를 시간표 추가하고 해당학기학점, 전체학기학점를 확인했습니다.