-
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.
- Loading branch information
1 parent
85727d0
commit ac3e434
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/com/rootandfruit/server/dto/RecentOrderResponseDto.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.rootandfruit.server.dto; | ||
|
||
public record RecentOrderResponseDto( | ||
Integer orderNumber, | ||
String senderName | ||
) { | ||
public static RecentOrderResponseDto of( | ||
final Integer orderNumber, | ||
final String senderName | ||
) { | ||
return new RecentOrderResponseDto( | ||
orderNumber, senderName | ||
); | ||
} | ||
} |