-
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 #9 from zhelemishsh/order_in_process_service
Order in process service
- Loading branch information
Showing
21 changed files
with
452 additions
and
60 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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/pomika/carwashbackend/dto/MapPositionDto.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,16 @@ | ||
package com.pomika.carwashbackend.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class MapPositionDto { | ||
|
||
@JsonProperty("latitude") | ||
private double latitude; | ||
|
||
@JsonProperty("longitude") | ||
private double longitude; | ||
} |
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/pomika/carwashbackend/dto/OrderInProcessForCarWashDto.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.pomika.carwashbackend.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.pomika.carwashbackend.model.WashServiceType; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class OrderInProcessForCarWashDto { | ||
@JsonProperty("id") | ||
private int id; | ||
|
||
@JsonProperty("start_time") | ||
private Date startTime; | ||
|
||
@JsonProperty("wash_time") | ||
private int washTime; | ||
|
||
@JsonProperty("price") | ||
private int price; | ||
|
||
@JsonProperty("car") | ||
private CarDto car; | ||
|
||
@JsonProperty("wash_service_types") | ||
private List<WashServiceType> washServiceTypes; | ||
|
||
@JsonProperty("user_phone_number") | ||
private String userPhoneNumber; | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/com/pomika/carwashbackend/dto/OrderInProcessForUserDto.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,46 @@ | ||
package com.pomika.carwashbackend.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.pomika.carwashbackend.model.WashServiceType; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class OrderInProcessForUserDto { | ||
@JsonProperty("id") | ||
private int id; | ||
|
||
@JsonProperty("start_time") | ||
private Date startTime; | ||
|
||
@JsonProperty("wash_time") | ||
private int washTime; | ||
|
||
@JsonProperty("price") | ||
private int price; | ||
|
||
@JsonProperty("car") | ||
private CarDto car; | ||
|
||
@JsonProperty("wash_service_types") | ||
private List<WashServiceType> washServiceTypes; | ||
|
||
@JsonProperty("car_wash_name") | ||
private String carWashName; | ||
|
||
@JsonProperty("car_wash_address") | ||
private String carWashAddress; | ||
|
||
@JsonProperty("map_position") | ||
private MapPositionDto mapPositionDto; | ||
|
||
@JsonProperty("car_wash_picture") | ||
private String carWashPicture; | ||
|
||
@JsonProperty("car_wash_phone_number") | ||
private String carWashPhoneNumber; | ||
} |
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
15 changes: 15 additions & 0 deletions
15
src/main/java/com/pomika/carwashbackend/dto/SearchAreaDto.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,15 @@ | ||
package com.pomika.carwashbackend.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class SearchAreaDto { | ||
@JsonProperty("map_position") | ||
private MapPositionDto mapPositionDto; | ||
|
||
@JsonProperty("radius") | ||
private double radius; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/pomika/carwashbackend/exception/OrderInProcessServiceException.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,7 @@ | ||
package com.pomika.carwashbackend.exception; | ||
|
||
public class OrderInProcessServiceException extends RuntimeException{ | ||
public OrderInProcessServiceException(String message){ | ||
super(message); | ||
} | ||
} |
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
4 changes: 4 additions & 0 deletions
4
src/main/java/com/pomika/carwashbackend/model/MapPosition.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,13 +1,17 @@ | ||
package com.pomika.carwashbackend.model; | ||
|
||
import jakarta.persistence.Embeddable; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@Embeddable | ||
public class MapPosition { | ||
public MapPosition(){} | ||
|
||
private double latitude; | ||
private double longitude; | ||
} |
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.