-
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.
- Loading branch information
1 parent
9fd623c
commit 8de64a1
Showing
5 changed files
with
39 additions
and
12 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
18 changes: 17 additions & 1 deletion
18
src/main/java/com/nhnacademy/marketgg/auth/dto/request/AuthWithDrawRequest.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,29 @@ | ||
package com.nhnacademy.marketgg.auth.dto.request; | ||
|
||
import java.time.LocalDateTime; | ||
import javax.validation.constraints.Email; | ||
import javax.validation.constraints.NotBlank; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.security.crypto.password.PasswordEncoder; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
public class AuthWithDrawRequest { | ||
|
||
private LocalDateTime deletedAt; | ||
@Email(message = "이메일 양식을 지켜주세요.") | ||
@NotBlank(message = "이메일을 입력해 주세요.") | ||
private String email; | ||
|
||
@NotBlank(message = "비밀번호를 입력해 주세요.") | ||
private String password; | ||
|
||
private LocalDateTime withdrawAt; | ||
|
||
public void encodingPassword(PasswordEncoder passwordEncoder) { | ||
this.password = passwordEncoder.encode(this.password); | ||
} | ||
|
||
} |
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