Skip to content

Commit

Permalink
refactor: 대학 목록 조회시 id도 반환하도록 수정 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdohyung committed Nov 22, 2023
1 parent f0c73cb commit e11a2c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.backend.domain.university.entity.University;

public record getUnivResponseDto(String univName, String email) {
public record getUnivResponseDto(Long universityId, String univName, String email) {
public static getUnivResponseDto from(University university) {
return new getUnivResponseDto(university.getName(), university.getEmail());
return new getUnivResponseDto(university.getUniversityId(), university.getName(), university.getEmail());
}
}

0 comments on commit e11a2c6

Please sign in to comment.