-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CreatePatronResponse, CreatePatronRequest, GetPatronsResponse c…
…lasses outline
- Loading branch information
1 parent
a535115
commit 7eb5a3d
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...on_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronRequest.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,17 @@ | ||
package com.codedifferently.lesson16.web; | ||
|
||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class CreatePatronRequest { | ||
@NotNull(message = "patron is required") @Valid | ||
private PatronsRequest patron; | ||
} |
10 changes: 10 additions & 0 deletions
10
...n_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronResponse.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,10 @@ | ||
package com.codedifferently.lesson16.web; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class CreatePatronResponse { | ||
private PatronsResponse patron; | ||
} |
12 changes: 12 additions & 0 deletions
12
lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/GetPatronsResponse.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,12 @@ | ||
package com.codedifferently.lesson16.web; | ||
|
||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.Singular; | ||
|
||
@Data | ||
@Builder | ||
public class GetPatronsResponse { | ||
@Singular private List<PatronsResponse> patrons; | ||
} |