Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gechengyang
nouiWithSpringMVC
Commits
a87efd30
Commit
a87efd30
authored
Sep 01, 2020
by
lvxinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add errorcode
parent
4630394c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
ErrorCode.java
...ava/org/sss/presentation/noui/api/response/ErrorCode.java
+46
-0
LoginController.java
...org/sss/presentation/noui/controller/LoginController.java
+1
-0
No files found.
src/main/java/org/sss/presentation/noui/api/response/ErrorCode.java
0 → 100644
View file @
a87efd30
package
org
.
sss
.
presentation
.
noui
.
api
.
response
;
/**
* <br/>created in 2020/9/01 10:00
*
* @author copy from 人行前置
*/
public
enum
ErrorCode
{
SYSTEM_ERROR
(
"R9999"
,
"系统错误,请稍后重试"
),
LOGIN_FIRST_LOGIN
(
"R9996"
,
"初次登陆需修改密码"
),
LOGIN_PWD_AME_INTERVAL
(
"R9995"
,
"已长时间未修改密码,请修改密码"
),
LOGIN_PWD_CHECK
(
"R9994"
,
"连续多次错误密码,用户已锁定,请联系管理员!"
),
LOGIN_PARAMETER_CHECK
(
"R9993"
,
"登陆信息不完整,用户名或密码为空"
),
LOGIN_NON_USR
(
"R9992"
,
"系统无此用户"
),
LOGIN_LOCK_USR
(
"R9991"
,
"用户已被锁定"
),
LOGIN_EXPRIED_USR
(
"R9990"
,
"用户已被注销"
),
LOGIN_PWD_ERROR
(
"R9989"
,
"密码错误!"
),
LOGIN_DN_ERROR
(
"R9988"
,
"DN码错误!"
),
LOGIN_STATE_ABNORMAL_ERROR
(
"R9987"
,
"无效用户"
);
private
final
String
code
;
public
String
getCode
()
{
return
code
;
}
public
String
getMessage
()
{
return
message
;
}
private
final
String
message
;
ErrorCode
(
String
code
,
String
message
){
this
.
code
=
code
;
this
.
message
=
message
;
}
@Override
public
String
toString
()
{
return
"ErrorCode{"
+
"code='"
+
code
+
'\''
+
", message='"
+
message
+
'\''
+
'}'
;
}
}
src/main/java/org/sss/presentation/noui/controller/LoginController.java
View file @
a87efd30
...
...
@@ -24,6 +24,7 @@ import org.sss.presentation.noui.api.exception.NoUiException;
import
org.sss.presentation.noui.api.model.Menu
;
import
org.sss.presentation.noui.api.request.NoUiRequest
;
import
org.sss.presentation.noui.api.response.ErrorCodes
;
import
org.sss.presentation.noui.api.response.ErrorCode
;
import
org.sss.presentation.noui.api.response.ResultUtil
;
import
org.sss.presentation.noui.common.Constants
;
import
org.sss.presentation.noui.context.NoUiContext
;
...
...
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