Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
e4abedc3
Commit
e4abedc3
authored
Feb 17, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态删除修复
parent
2b077b31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/main/java/cn/meteor/beyondclouds/modules/user/api/UserApi.java
+4
-1
src/main/java/cn/meteor/beyondclouds/modules/user/enums/UserErrorCode.java
+2
-1
No files found.
src/main/java/cn/meteor/beyondclouds/modules/user/api/UserApi.java
View file @
e4abedc3
...
@@ -18,6 +18,7 @@ import cn.meteor.beyondclouds.modules.user.entity.UserBlacklist;
...
@@ -18,6 +18,7 @@ import cn.meteor.beyondclouds.modules.user.entity.UserBlacklist;
import
cn.meteor.beyondclouds.modules.user.entity.UserStatistics
;
import
cn.meteor.beyondclouds.modules.user.entity.UserStatistics
;
import
cn.meteor.beyondclouds.modules.user.enums.AccountType
;
import
cn.meteor.beyondclouds.modules.user.enums.AccountType
;
import
cn.meteor.beyondclouds.modules.user.enums.AuthType
;
import
cn.meteor.beyondclouds.modules.user.enums.AuthType
;
import
cn.meteor.beyondclouds.modules.user.enums.UserErrorCode
;
import
cn.meteor.beyondclouds.modules.user.exception.UserServiceException
;
import
cn.meteor.beyondclouds.modules.user.exception.UserServiceException
;
import
cn.meteor.beyondclouds.modules.user.form.*
;
import
cn.meteor.beyondclouds.modules.user.form.*
;
import
cn.meteor.beyondclouds.modules.user.service.IUserBlacklistService
;
import
cn.meteor.beyondclouds.modules.user.service.IUserBlacklistService
;
...
@@ -85,7 +86,9 @@ public class UserApi {
...
@@ -85,7 +86,9 @@ public class UserApi {
@ApiOperation
(
"邮箱注册"
)
@ApiOperation
(
"邮箱注册"
)
@PostMapping
(
"/user/register/email"
)
@PostMapping
(
"/user/register/email"
)
public
Response
emailRegister
(
@RequestBody
@Valid
EmailRegisterFrom
registerFrom
,
BindingResult
result
)
{
public
Response
emailRegister
(
@RequestBody
@Valid
EmailRegisterFrom
registerFrom
,
BindingResult
result
)
{
if
(
true
)
{
return
Response
.
error
(
UserErrorCode
.
EMAIL_CLOSED
);
}
if
(
result
.
hasErrors
())
{
if
(
result
.
hasErrors
())
{
return
Response
.
fieldError
(
result
.
getFieldError
());
return
Response
.
fieldError
(
result
.
getFieldError
());
}
}
...
...
src/main/java/cn/meteor/beyondclouds/modules/user/enums/UserErrorCode.java
View file @
e4abedc3
...
@@ -30,7 +30,8 @@ public enum UserErrorCode implements IErrorCode {
...
@@ -30,7 +30,8 @@ public enum UserErrorCode implements IErrorCode {
USER_NOT_EXISTS
(
130017
,
"要查看的用户不存在"
),
USER_NOT_EXISTS
(
130017
,
"要查看的用户不存在"
),
USER_NICK_NAME_USED
(
130018
,
"该昵称已存在"
),
USER_NICK_NAME_USED
(
130018
,
"该昵称已存在"
),
NICK_MODIFY_UPPER_LIMIT
(
130019
,
"本月昵称修改次数已达上限"
),
NICK_MODIFY_UPPER_LIMIT
(
130019
,
"本月昵称修改次数已达上限"
),
USER_DISABLED
(
130020
,
"您已被封号,请联系管理员解封"
);
USER_DISABLED
(
130020
,
"您已被封号,请联系管理员解封"
),
EMAIL_CLOSED
(
130060
,
"邮箱注册通过暂时关闭"
);
UserErrorCode
(
long
code
,
String
msg
)
{
UserErrorCode
(
long
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
code
=
code
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment