-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#90 [feat] 모델 지원서 상세보기 기능 구현 #93
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
78c78d1
#90 [feat] response 구현
4485941
#90 [feat] response 추가
3f9aaaa
#90 [feat] 모델 지원서 상세보기 기능 구현
8b25c1a
#90 [refactor] enum 수정
927c852
#90 [refactor] sort 기능 수정
304931d
#90 [refactor] 404 에러 추가
144e325
#90 [refactor] json creator 수정
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 7 additions & 0 deletions
7
...java/com/moddy/server/controller/designer/dto/response/ApplicationDetailInfoResponse.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,7 @@ | ||
package com.moddy.server.controller.designer.dto.response; | ||
|
||
public record ApplicationDetailInfoResponse( | ||
ApplicationInfoResponse applicationInfo, | ||
ModelInfoResponse modelInfo | ||
) { | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/moddy/server/controller/designer/dto/response/ApplicationInfoResponse.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,17 @@ | ||
package com.moddy.server.controller.designer.dto.response; | ||
|
||
import com.moddy.server.domain.hair_model_application.HairLength; | ||
import com.moddy.server.domain.prefer_hair_style.HairStyle; | ||
|
||
import java.util.List; | ||
|
||
public record ApplicationInfoResponse( | ||
Long applicationId, | ||
String modelImgUrl, | ||
HairLength hairLength, | ||
List<String> preferHairstyles, | ||
List<HairRecordResponse> hairServiceRecords, | ||
String hairDetail, | ||
Boolean isSend | ||
) { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/moddy/server/controller/designer/dto/response/HairRecordResponse.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,7 @@ | ||
package com.moddy.server.controller.designer.dto.response; | ||
|
||
public record HairRecordResponse( | ||
String hairServiceTerm, | ||
String hairService | ||
) { | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/moddy/server/controller/designer/dto/response/ModelInfoResponse.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,16 @@ | ||
package com.moddy.server.controller.designer.dto.response; | ||
|
||
import com.moddy.server.domain.user.Gender; | ||
|
||
import java.util.List; | ||
|
||
public record ModelInfoResponse( | ||
Long modelId, | ||
String name, | ||
Integer age, | ||
String gender, | ||
List<String> preferRegions, | ||
String instagramId | ||
|
||
) { | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/moddy/server/controller/model/dto/response/ApplicationDetailResponse.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,15 @@ | ||
package com.moddy.server.controller.model.dto.response; | ||
|
||
import com.moddy.server.domain.hair_model_application.HairLength; | ||
import com.moddy.server.domain.prefer_hair_style.HairStyle; | ||
|
||
import java.util.List; | ||
|
||
public record ApplicationDetailResponse( | ||
Long applicationId, | ||
String modelImgUrl, | ||
HairLength hairLength, | ||
List<HairStyle> preferHairStyles | ||
|
||
) { | ||
} |
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
11 changes: 11 additions & 0 deletions
11
...om/moddy/server/domain/hair_service_record/repository/HairServcieRecordJpaRepository.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,11 @@ | ||
package com.moddy.server.domain.hair_service_record.repository; | ||
|
||
import com.moddy.server.domain.hair_service_record.HairServiceRecord; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.List; | ||
|
||
public interface HairServcieRecordJpaRepository extends JpaRepository<HairServiceRecord, Long> { | ||
List<HairServiceRecord> findAllByHairModelApplicationId(Long applicationId); | ||
|
||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p3:
여기에 applicationId가 잘못왔을 때에 대한 404 에러도 있어야할것 같아요