-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task 40 : Define CreateUserRequest, UpdateUserRequest and UserPagingR…
…equest
- Loading branch information
1 parent
f90337a
commit 4e89fc2
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/com/springboot/ratelimiter/user/payload/request/CreateUserRequest.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,21 @@ | ||
package com.springboot.ratelimiter.user.payload.request; | ||
|
||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.*; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class CreateUserRequest { | ||
|
||
@NotNull(message = "Name is mandatory") | ||
private String name; | ||
|
||
@Email(message = "Email should be valid") | ||
@NotNull(message = "Email is mandatory") | ||
private String email; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/springboot/ratelimiter/user/payload/request/UpdateUserRequest.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,21 @@ | ||
package com.springboot.ratelimiter.user.payload.request; | ||
|
||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.*; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class UpdateUserRequest { | ||
|
||
@NotNull(message = "Name is mandatory") | ||
private String name; | ||
|
||
@Email(message = "Email should be valid") | ||
@NotNull(message = "Email is mandatory") | ||
private String email; | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/springboot/ratelimiter/user/payload/request/UserPagingRequest.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.springboot.ratelimiter.user.payload.request; | ||
|
||
import com.springboot.ratelimiter.common.model.dto.request.CustomPagingRequest; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Getter | ||
@Setter | ||
@SuperBuilder | ||
@NoArgsConstructor | ||
public class UserPagingRequest extends CustomPagingRequest { | ||
|
||
} |