-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...in/kotlin/com/yourssu/soongpt/domain/course/application/dto/MajorElectiveCourseRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.yourssu.soongpt.domain.course.application.dto | ||
|
||
import jakarta.validation.constraints.NotBlank | ||
import org.hibernate.validator.constraints.Range | ||
|
||
data class MajorElectiveCourseRequest( | ||
@Range(min = 15, max = 25, message = "학번은 15부터 25까지 가능합니다.") | ||
val schoolId: Long, | ||
|
||
@NotBlank | ||
val department: String, | ||
|
||
@Range(min = 1, max = 5, message = "학년은 1부터 5까지 가능합니다.") | ||
val grade: Int, | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
// 전공 필수 과목 조회 | ||
|
||
@schoolId = 21 | ||
@department = 소프트웨어학부 | ||
@grade = 1 | ||
|
||
// 전공 필수 과목 조회 | ||
### | ||
GET localhost:8080/api/courses/major/required?schoolId={{schoolId}}&department={{department}}&grade={{grade}} | ||
Content-Type: application/x-www-form-urlencoded | ||
### | ||
|
||
// 전공 선택 과목 조회 | ||
### | ||
GET localhost:8080/api/courses/major/elective?schoolId={{schoolId}}&department={{department}}&grade={{grade}} | ||
Content-Type: application/x-www-form-urlencoded | ||
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters