-
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.
* 🎨 인터페이스 구현체 작성 * 🗃️ DB 구조 변경 * ✨ 서비스 로직 작성 완료 * ✨ 사용자 조회 시 기록 실행 * ♻️ 마이페이지 코드 리팩토링 * 🎨 응답 구조 변경 (dto 객체 생성) * ✨ 마이페이지 응답에 내가 조회한 크리에이터 목록 추가 * 🎨 응답 구조 yyyy.MM.dd 로 변경
- Loading branch information
1 parent
749d9f8
commit 76925a6
Showing
18 changed files
with
219 additions
and
134 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
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
40 changes: 0 additions & 40 deletions
40
src/main/java/org/example/gather_back_end/domain/UsersViewRecord.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
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
17 changes: 0 additions & 17 deletions
17
src/main/java/org/example/gather_back_end/repository/UsersViewRecordRepository.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
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
src/main/java/org/example/gather_back_end/user/dto/GetMyPageProfileInfo.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 org.example.gather_back_end.user.dto; | ||
|
||
public record GetMyPageProfileInfo( | ||
String profileImgUrl, // 프로필 이미지 | ||
String role, // 크리에이터인지 아닌지 | ||
String email | ||
) { | ||
|
||
// 정적 팩토리 메서드 | ||
public static GetMyPageProfileInfo of(String profileImgUrl, String role, String email) { | ||
return new GetMyPageProfileInfo(profileImgUrl, role, email); | ||
} | ||
|
||
} |
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: 5 additions & 7 deletions
12
src/main/java/org/example/gather_back_end/user/dto/GetMyPageRes.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,15 +1,13 @@ | ||
package org.example.gather_back_end.user.dto; | ||
|
||
import lombok.Builder; | ||
import org.example.gather_back_end.domain.User; | ||
|
||
import java.util.List; | ||
import lombok.Builder; | ||
import org.example.gather_back_end.creator.dto.filtering.CreatorInfo; | ||
|
||
@Builder | ||
public record GetMyPageRes( | ||
String profileImgUrl, // 프로필 이미지 | ||
String role, // 크리에이터인지 아닌지 | ||
String email, | ||
List<GetMyPagePromotionRes> getMyPagePromotionResList | ||
GetMyPageProfileInfo profileInfo, // 프로필 정보 | ||
List<GetMyPagePromotionRes> promotionInfo, // 홍보 전략 요청 사항 | ||
List<CreatorInfo> creatorInfo // 내가 조회한 크리에이터 목록 | ||
) { | ||
} |
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.