-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from PawWithU/feat/163-intermediary-get-api-m…
…odify [Feature] 이동봉사 모집자 봉사 관리 - 목록 조회 API 수정
- Loading branch information
Showing
11 changed files
with
80 additions
and
46 deletions.
There are no files selected for viewing
15 changes: 12 additions & 3 deletions
15
.../connectdog/domain/application/dto/response/ApplicationIntermediaryCompletedResponse.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,24 @@ | ||
package com.pawwithu.connectdog.domain.application.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import com.pawwithu.connectdog.domain.dog.entity.DogSize; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record ApplicationIntermediaryCompletedResponse(Long postId, String mainImage, String dogName, | ||
String departureLoc, String arrivalLoc, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate startDate, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate endDate, | ||
String departureLoc, String arrivalLoc, | ||
String volunteerName, Long applicationId, | ||
Long reviewId, Long dogStatusId) { | ||
String pickUpTime, | ||
String dogSize, | ||
Boolean isKennel, | ||
Long reviewId) { | ||
public ApplicationIntermediaryCompletedResponse(Long postId, String mainImage, String dogName, | ||
String departureLoc, String arrivalLoc, LocalDate startDate, LocalDate endDate, | ||
String pickUpTime, DogSize dogSize, Boolean isKennel, Long reviewId) { | ||
this(postId, mainImage, dogName, departureLoc, arrivalLoc, startDate, endDate, pickUpTime, | ||
dogSize.getKey(), isKennel, reviewId); | ||
} | ||
} |
17 changes: 14 additions & 3 deletions
17
...onnectdog/domain/application/dto/response/ApplicationIntermediaryProgressingResponse.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,26 @@ | ||
package com.pawwithu.connectdog.domain.application.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import com.pawwithu.connectdog.domain.dog.entity.DogSize; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
|
||
public record ApplicationIntermediaryProgressingResponse(Long postId, String mainImage, String dogName, | ||
String departureLoc, String arrivalLoc, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate startDate, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate endDate, | ||
String departureLoc, String arrivalLoc, | ||
String volunteerName, | ||
String pickUpTime, | ||
String dogSize, | ||
Boolean isKennel, | ||
Long applicationId) { | ||
} | ||
|
||
public ApplicationIntermediaryProgressingResponse(Long postId, String mainImage, String dogName, | ||
String departureLoc, String arrivalLoc, LocalDate startDate, LocalDate endDate, | ||
String pickUpTime, DogSize dogSize, Boolean isKennel, Long applicationId) { | ||
this(postId, mainImage, dogName, departureLoc, arrivalLoc, startDate, endDate, pickUpTime, | ||
dogSize.getKey(), isKennel, 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
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
13 changes: 9 additions & 4 deletions
13
...main/java/com/pawwithu/connectdog/domain/post/dto/response/PostRecruitingGetResponse.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,21 +1,26 @@ | ||
package com.pawwithu.connectdog.domain.post.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import com.pawwithu.connectdog.domain.dog.entity.DogSize; | ||
import com.pawwithu.connectdog.domain.post.entity.PostStatus; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record PostRecruitingGetResponse(Long postId, String postStatus, String mainImage, String dogName, | ||
String departureLoc, String arrivalLoc, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate startDate, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate endDate, | ||
String departureLoc, String arrivalLoc, | ||
String volunteerName) { | ||
String pickUpTime, | ||
String dogSize, | ||
Boolean isKennel) { | ||
|
||
// 공고 이동봉사자 이름을 제외한 생성자 | ||
public PostRecruitingGetResponse(Long postId, PostStatus postStatus, String mainImage, String dogName, | ||
LocalDate startDate, LocalDate endDate, String departureLoc, String arrivalLoc) { | ||
this(postId, postStatus.getKey(), mainImage, dogName, startDate, endDate, departureLoc, arrivalLoc, null); | ||
String departureLoc, String arrivalLoc, LocalDate startDate, LocalDate endDate, | ||
String pickUpTime, DogSize dogSize, Boolean isKennel) { | ||
this(postId, postStatus.getKey(), mainImage, dogName, departureLoc, arrivalLoc, | ||
startDate, endDate, pickUpTime, dogSize.getKey(), isKennel); | ||
} | ||
} |
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