-
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 #110 from Leets-Official/dev
Main 머지
- Loading branch information
Showing
15 changed files
with
133 additions
and
117 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
21 changes: 18 additions & 3 deletions
21
src/main/java/com/gachtaxi/domain/matching/common/dto/request/AutoMatchingPostRequest.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,36 @@ | ||
package com.gachtaxi.domain.matching.common.dto.request; | ||
|
||
import com.gachtaxi.domain.matching.common.entity.enums.Tags; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.List; | ||
|
||
public record AutoMatchingPostRequest( | ||
String startPoint, | ||
String startName, | ||
// String startName, | ||
String destinationPoint, | ||
// String destinationName, | ||
|
||
// 현재 사용하는 필드 | ||
String startName, | ||
String destinationName, | ||
List<String> criteria, | ||
List<Integer> members, | ||
Integer expectedTotalCharge | ||
@NotNull | ||
List<Long> members, | ||
|
||
@Min(value = 4000) | ||
int expectedTotalCharge | ||
) { | ||
|
||
public List<Tags> getCriteria() { | ||
return this.criteria.stream() | ||
.map(Tags::valueOf) | ||
.toList(); | ||
} | ||
public String getDeparture() { | ||
return startName; | ||
} | ||
public String getDestination() { | ||
return destinationName; | ||
} | ||
} |
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
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
Oops, something went wrong.