-
Notifications
You must be signed in to change notification settings - Fork 0
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 #83 from YAPP-Github/feat/ISSUE-82
feat: My carpool list API
- Loading branch information
Showing
5 changed files
with
85 additions
and
4 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
34 changes: 34 additions & 0 deletions
34
src/main/java/com/fullcar/carpool/presentation/carpool/dto/response/MyCarpoolDto.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,34 @@ | ||
package com.fullcar.carpool.presentation.carpool.dto.response; | ||
|
||
import com.fullcar.carpool.domain.carpool.CarpoolState; | ||
import com.fullcar.carpool.domain.carpool.PeriodType; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.*; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor(access = AccessLevel.PROTECTED) | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@Schema(description = "카풀 List 응답 모델") | ||
public class MyCarpoolDto { | ||
@Schema(description = "카풀 id") | ||
private Long id; | ||
|
||
@Schema(description = "픽업장소") | ||
private String pickupLocation; | ||
|
||
@Schema(description = "희망비용(기간)") | ||
private PeriodType periodType; | ||
|
||
@Schema(description = "희망비용(가격)") | ||
private Long money; | ||
|
||
@Schema(description = "카풀 상태") | ||
private CarpoolState carpoolState; | ||
|
||
@Schema(description = "생성 Timestamp") | ||
private LocalDateTime createdAt; | ||
} |