forked from Eagle-OJ/eagle-oj-api
-
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
0c59579
commit 65f29ac
Showing
20 changed files
with
364 additions
and
253 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
34 changes: 34 additions & 0 deletions
34
eagle-oj-web/src/main/java/com/eagleoj/web/controller/format/index/ForgetPasswordFormat.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,34 @@ | ||
package com.eagleoj.web.controller.format.index; | ||
|
||
import org.hibernate.validator.constraints.Email; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
/** | ||
* @author Smith | ||
**/ | ||
public class ForgetPasswordFormat { | ||
|
||
@NotNull | ||
private String url; | ||
|
||
@NotNull | ||
private String email; | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
eagle-oj-web/src/main/java/com/eagleoj/web/controller/format/index/ResetPasswordFormat.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,45 @@ | ||
package com.eagleoj.web.controller.format.index; | ||
|
||
import org.hibernate.validator.constraints.Email; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
/** | ||
* @author Smith | ||
**/ | ||
public class ResetPasswordFormat { | ||
|
||
@NotNull | ||
private String email; | ||
|
||
@NotNull | ||
private String password; | ||
|
||
@NotNull | ||
private String code; | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
eagle-oj-web/src/main/java/com/eagleoj/web/controller/format/user/SendMailFormat.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,31 @@ | ||
package com.eagleoj.web.controller.format.user; | ||
|
||
import org.hibernate.validator.constraints.Email; | ||
import org.hibernate.validator.constraints.NotBlank; | ||
|
||
/** | ||
* @author Smith | ||
**/ | ||
public class SendMailFormat { | ||
|
||
private String url; | ||
|
||
private String mail; | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public String getMail() { | ||
return mail; | ||
} | ||
|
||
public void setMail(String mail) { | ||
this.mail = mail; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
eagle-oj-web/src/main/java/com/eagleoj/web/controller/format/user/VerifyUserEmailFormat.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,20 @@ | ||
package com.eagleoj.web.controller.format.user; | ||
|
||
import org.hibernate.validator.constraints.NotBlank; | ||
|
||
/** | ||
* @author Smith | ||
**/ | ||
public class VerifyUserEmailFormat { | ||
|
||
@NotBlank | ||
private String code; | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
} |
Oops, something went wrong.