-
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 #101 from Hoang-Nguyen-Huy/PBS-84-Manage-Order-Ame…
…nities Pbs 84 manage order amenities
- Loading branch information
Showing
9 changed files
with
274 additions
and
25 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
14 changes: 14 additions & 0 deletions
14
.../com/swp/PodBookingSystem/dto/request/OrderDetailAmenity/OrderDetailAmenityUpdateReq.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,14 @@ | ||
package com.swp.PodBookingSystem.dto.request.OrderDetailAmenity; | ||
import com.swp.PodBookingSystem.enums.OrderDetailAmenityStatus; | ||
import lombok.*; | ||
import lombok.experimental.FieldDefaults; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@FieldDefaults(level = AccessLevel.PRIVATE) | ||
public class OrderDetailAmenityUpdateReq { | ||
String id; | ||
OrderDetailAmenityStatus status; | ||
} |
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
29 changes: 29 additions & 0 deletions
29
...om/swp/PodBookingSystem/dto/respone/OrderDetailAmenity/OrderDetailAmenityResponseDTO.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,29 @@ | ||
package com.swp.PodBookingSystem.dto.respone.OrderDetailAmenity; | ||
|
||
import com.swp.PodBookingSystem.entity.Amenity; | ||
import com.swp.PodBookingSystem.enums.AmenityType; | ||
import com.swp.PodBookingSystem.enums.OrderDetailAmenityStatus; | ||
import lombok.*; | ||
import lombok.experimental.FieldDefaults; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@FieldDefaults(level = AccessLevel.PRIVATE) | ||
public class OrderDetailAmenityResponseDTO { | ||
String id; | ||
int quantity; | ||
double price; | ||
String orderDetailId; | ||
int amenityId; | ||
String amenityName; | ||
AmenityType amenityType; | ||
OrderDetailAmenityStatus status; | ||
String statusDescription; | ||
LocalDateTime createdAt; | ||
LocalDateTime updatedAt; | ||
} |
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/swp/PodBookingSystem/enums/OrderDetailAmenityStatus.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.swp.PodBookingSystem.enums; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum OrderDetailAmenityStatus { | ||
Booked("Đã đặt"), | ||
Delivered("Đã giao"), | ||
Canceled("Đã xóa"); | ||
|
||
private final String description; | ||
|
||
OrderDetailAmenityStatus(String description) { | ||
this.description = description; | ||
} | ||
} |
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.