Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class StudentRequest {
private StudentRole role;
private Integer dormitoryRoom;
private Boolean isLeaveSchool;
private Boolean isGraduate;
private Integer page;
private Integer size;
private StudentSortBy sortBy;
Expand Down Expand Up @@ -97,6 +98,11 @@ public StudentRequest isLeaveSchool(Boolean isLeaveSchool) {
return this;
}

public StudentRequest isGraduate(Boolean isGraduate) {
this.isGraduate = isGraduate;
return this;
}

public StudentRequest page(Integer page) {
this.page = page;
return this;
Expand Down Expand Up @@ -157,6 +163,10 @@ public Boolean getIsLeaveSchool() {
return isLeaveSchool;
}

public Boolean getIsGraduated() {
return isGraduate;
}

public Integer getPage() {
return page;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import java.util.HashMap;
import java.util.Map;

/**
* 학생 데이터 API 구현
*/
public class StudentApiImpl implements StudentApi {
private final HttpClient httpClient;
private final String apiKey;
Expand Down Expand Up @@ -79,6 +76,9 @@ private Map<String, String> buildStudentQueryParams(StudentRequest request) {
if (request.getIsLeaveSchool() != null) {
params.put("isLeaveSchool", request.getIsLeaveSchool().toString());
}
if (request.getIsGraduated() != null) {
params.put("isGraduated", request.getIsGraduated().toString());
}
if (request.getPage() != null) {
params.put("page", request.getPage().toString());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public enum StudentRole {
GENERAL_STUDENT,
CLASS_LEADER,
STUDENT_COUNCIL,
DORMITORY_LEADER
DORMITORY_MANAGER,
GRADUATE,
}