-
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 #162 from PawWithU/feat/161-volunteer-get-api-modify
[Feature] 이동봉사자 봉사 관리 - 목록 조회 API 추가 수정
- Loading branch information
Showing
5 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
14 changes: 10 additions & 4 deletions
14
...thu/connectdog/domain/application/dto/response/ApplicationVolunteerCompletedResponse.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,17 +1,23 @@ | ||
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 ApplicationVolunteerCompletedResponse(Long postId, String mainImage, | ||
String departureLoc, String arrivalLoc, | ||
public record ApplicationVolunteerCompletedResponse(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 pickUpTime, | ||
String intermediaryName, Boolean isKennel, | ||
String dogSize, | ||
Boolean isKennel, | ||
Long reviewId) { | ||
|
||
public ApplicationVolunteerCompletedResponse(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); | ||
} | ||
} |
21 changes: 15 additions & 6 deletions
21
...u/connectdog/domain/application/dto/response/ApplicationVolunteerProgressingResponse.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 ApplicationVolunteerProgressingResponse(Long postId, String mainImage, String departureLoc, String arrivalLoc, | ||
public record ApplicationVolunteerProgressingResponse(Long postId, String mainImage, String dogName, String departureLoc, String arrivalLoc, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate startDate, | ||
LocalDate startDate, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul") | ||
LocalDate endDate, | ||
LocalDate endDate, | ||
String pickUpTime, | ||
String intermediaryName, | ||
Boolean isKennel) { | ||
} | ||
String dogSize, | ||
Boolean isKennel, | ||
Long applicationId) { | ||
|
||
public ApplicationVolunteerProgressingResponse(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); | ||
} | ||
} |
12 changes: 10 additions & 2 deletions
12
...withu/connectdog/domain/application/dto/response/ApplicationVolunteerWaitingResponse.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,16 +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 ApplicationVolunteerWaitingResponse(Long postId, String mainImage, String departureLoc, String arrivalLoc, | ||
public record ApplicationVolunteerWaitingResponse(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 pickUpTime, | ||
String intermediaryName, | ||
String dogSize, | ||
Boolean isKennel, | ||
Long applicationId) { | ||
|
||
public ApplicationVolunteerWaitingResponse(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