Commit a87efd30 by lvxinyong

add errorcode

parent 4630394c
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 + '\'' +
'}';
}
}
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment