-
Notifications
You must be signed in to change notification settings - Fork 4
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
8 changed files
with
150 additions
and
95 deletions.
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
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
12 changes: 3 additions & 9 deletions
12
...tworking/dto/MemberDetailResponseDto.java → ...networking/dto/GenerationResponseDto.java
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,27 +1,21 @@ | ||
package com.gdscswu_server.server.domain.networking.dto; | ||
|
||
import com.gdscswu_server.server.domain.member.domain.Generation; | ||
import com.gdscswu_server.server.domain.member.domain.Member; | ||
import com.gdscswu_server.server.domain.member.domain.Project; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@Getter | ||
public class MemberDetailResponseDto { | ||
public class GenerationResponseDto { | ||
private Integer number; // 기수 (1기, 2기...) | ||
private String department; // 부서 (안드, UX/UI...) | ||
private String level; // 레벨 (코어, 리드...) | ||
private List<String> part; // 솔챌 파트 (피엠, 디자인...) | ||
@Builder | ||
public MemberDetailResponseDto(Generation generation, List<Project> projects){ | ||
public GenerationResponseDto(Generation generation){ | ||
this.number=generation.getNumber(); | ||
this.department=generation.getDepartment(); | ||
this.level=generation.getLevel(); | ||
this.part=projects.stream() | ||
.map(Project::getPart) | ||
.collect(Collectors.toList()); | ||
} | ||
|
||
} |
20 changes: 0 additions & 20 deletions
20
...main/java/com/gdscswu_server/server/domain/networking/dto/MemberListUpdateRequestDto.java
This file was deleted.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
Server/src/main/java/com/gdscswu_server/server/domain/networking/dto/ProjectResponseDto.java
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,14 @@ | ||
package com.gdscswu_server.server.domain.networking.dto; | ||
|
||
import com.gdscswu_server.server.domain.member.domain.Project; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ProjectResponseDto { | ||
private String part; // 솔챌 파트 (피엠, 디자인...) | ||
@Builder | ||
public ProjectResponseDto(Project projects) { | ||
this.part=projects.getPart(); | ||
} | ||
} |
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
Oops, something went wrong.