From 2da20115987564d59720b0ccc2bdfeb71d088f28 Mon Sep 17 00:00:00 2001 From: jsgjsg Date: Wed, 7 Jan 2026 20:45:00 +0900 Subject: [PATCH] =?UTF-8?q?[#3]=20feat:=20=EB=B0=B0=EC=B0=A8=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=EB=B0=8F=20=EC=88=98=EC=A0=95=20=EC=8B=9C=20?= =?UTF-8?q?=EC=B6=9C=EB=B0=9C=EC=A7=80,=20=EB=8F=84=EC=B0=A9=EC=A7=80=20?= =?UTF-8?q?=EC=9C=84=EB=8F=84,=20=EA=B2=BD=EB=8F=84=20=EC=9E=85=EB=A0=A5?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../office/dto/request/CreateDispatchReq.java | 20 +++++++++++++++++++ .../office/dto/request/UpdateDispatchReq.java | 12 +++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/main/java/com/mobility/api/domain/office/dto/request/CreateDispatchReq.java b/src/main/java/com/mobility/api/domain/office/dto/request/CreateDispatchReq.java index a127be5..8ceac49 100644 --- a/src/main/java/com/mobility/api/domain/office/dto/request/CreateDispatchReq.java +++ b/src/main/java/com/mobility/api/domain/office/dto/request/CreateDispatchReq.java @@ -17,10 +17,26 @@ public record CreateDispatchReq( @NotBlank(message = "출발지가 입력되지 않았습니다.") String startLocation, // 출발지 + @Schema(description = "출발지 위도", example = "37.5547125") + @NotNull(message = "출발지 위도가 입력되지 않았습니다.") + double startLatitude, + + @Schema(description = "출발지 경도", example = "37.5547125") + @NotNull(message = "출발지 경도가 입력되지 않았습니다.") + double startLongitude, + @Schema(description = "도착지", example = "강원도") @NotBlank(message = "도착지가 입력되지 않았습니다.") String destinationLocation, // 도착지 + @Schema(description = "도착지 위도", example = "37.5547125") + @NotNull(message = "도착지 위도가 입력되지 않았습니다.") + double destinationLatitude, + + @Schema(description = "도착지 경도", example = "37.5547125") + @NotNull(message = "도착지 경도가 입력되지 않았습니다.") + double destinationLongitude, + @Schema(description = "요금", example = "100000") @NotNull(message = "요금이 입력되지 않았습니다.") Integer charge, // 요금 @@ -48,7 +64,11 @@ public record CreateDispatchReq( public Dispatch toEntity() { return Dispatch.builder() .startLocation(this.startLocation()) + .startLatitude(this.startLatitude()) + .startLongitude(this.startLongitude()) .destinationLocation(this.destinationLocation()) + .destinationLatitude(this.destinationLatitude()) + .destinationLongitude(this.destinationLongitude()) .charge(this.charge()) .clientPhoneNumber(this.clientPhoneNumber()) .status(StatusType.OPEN) diff --git a/src/main/java/com/mobility/api/domain/office/dto/request/UpdateDispatchReq.java b/src/main/java/com/mobility/api/domain/office/dto/request/UpdateDispatchReq.java index e82bab5..725efd5 100644 --- a/src/main/java/com/mobility/api/domain/office/dto/request/UpdateDispatchReq.java +++ b/src/main/java/com/mobility/api/domain/office/dto/request/UpdateDispatchReq.java @@ -11,9 +11,21 @@ public record UpdateDispatchReq( @Schema(description = "출발지", example = "서울 강남구") String startLocation, + @Schema(description = "출발지 위도", example = "37.5547125") + double startLatitude, + + @Schema(description = "출발지 경도", example = "37.5547125") + double startLongitude, + @Schema(description = "도착지", example = "경기 성남시") String destinationLocation, + @Schema(description = "도착지 위도", example = "37.5547125") + double destinationLatitude, + + @Schema(description = "도착지 경도", example = "37.5547125") + double destinationLongitude, + @Schema(description = "요금", example = "20000") Integer charge,