-
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
124 additions
and
84 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
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
26 changes: 26 additions & 0 deletions
26
...rc/main/java/com/gdscswu_server/server/domain/networking/dto/MemberDetailResponseDto.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,26 @@ | ||
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.Getter; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@Getter | ||
public class MemberDetailResponseDto { | ||
private Integer number; // 기수 (1기, 2기...) | ||
private String department; // 부서 (안드, UX/UI...) | ||
private String level; // 레벨 (코어, 리드...) | ||
private List<String> part; // 솔챌 파트 (피엠, 디자인...) | ||
|
||
public MemberDetailResponseDto(Generation generation, List<Project> project){ | ||
this.number=generation.getNumber(); | ||
this.department=generation.getDepartment(); | ||
this.level=generation.getLevel(); | ||
this.part=project.stream() | ||
.map(Project::getPart) | ||
.collect(Collectors.toList()); | ||
} | ||
} |
38 changes: 18 additions & 20 deletions
38
.../src/main/java/com/gdscswu_server/server/domain/networking/dto/MemberListResponseDto.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,33 +1,31 @@ | ||
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.networking.domain.Bookmark; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@Setter | ||
public class MemberListResponseDto { | ||
private Long id; | ||
private String name; // 이름 | ||
private String profileImagePath; // 프로필 이미지 | ||
private String major; // 전공 | ||
private String major; // 학과 | ||
private Integer admissionYear; // 학번 | ||
private Integer number; // 기수 (1기, 2기...) | ||
private String department; // 부서 (안드, UX/UI...) | ||
private String level; // 레벨 (코어, 리드...) | ||
private String part; // 파트 (피엠, 디자인...) | ||
private String profileImagePath; // 프로필 사진 | ||
private boolean bookmark; // 북마크 저장 여부 | ||
private List<MemberDetailResponseDto> memberDetails; | ||
|
||
public MemberListResponseDto(Member member, boolean bookmark, List<MemberDetailResponseDto> memberDetailResponseDtoList){ | ||
|
||
public MemberListResponseDto(Generation generation){ | ||
this.id=generation.getMember().getId(); | ||
this.name=generation.getMember().getName(); | ||
this.profileImagePath=generation.getMember().getProfileImagePath(); | ||
this.major=generation.getMember().getMajor(); | ||
this.admissionYear=generation.getMember().getAdmissionYear(); | ||
this.number=generation.getNumber(); | ||
this.department=generation.getDepartment(); | ||
this.level=generation.getLevel(); | ||
//this.part=generation. | ||
this.name=member.getName(); | ||
this.profileImagePath=member.getProfileImagePath(); | ||
this.major=member.getMajor(); | ||
this.admissionYear=member.getAdmissionYear(); | ||
this.bookmark=bookmark; | ||
this.memberDetails=memberDetailResponseDtoList; | ||
} | ||
|
||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...main/java/com/gdscswu_server/server/domain/networking/dto/MemberListUpdateRequestDto.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,20 @@ | ||
package com.gdscswu_server.server.domain.networking.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class MemberListUpdateRequestDto { | ||
private String department; // 부서 (안드, UX/UI...) | ||
private String level; // 레벨 (코어, 리드...) | ||
private String part; // 솔챌 파트 (피엠, 디자인...) | ||
|
||
@Builder | ||
public MemberListUpdateRequestDto(String department,String level,String part){ | ||
this.department=department; | ||
this.level=level; | ||
this.part=part; | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
...src/main/java/com/gdscswu_server/server/domain/networking/dto/UserProfileResponseDto.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