mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
第三方登录回调后登陆系统用户逻辑基本完成
This commit is contained in:
@@ -13,7 +13,11 @@ public enum BusinessErrorCode implements CommonError {
|
||||
USER_ALREADY_EXIST(20005, "用户已存在"),
|
||||
|
||||
// 30000开头为权限相关错误定义
|
||||
OPERATION_NOT_ALLOWED(30001, "用户没有此操作的权限");
|
||||
OPERATION_NOT_ALLOWED(30001, "用户没有此操作的权限"),
|
||||
|
||||
// 40000开头为第三方登录相关错误定义
|
||||
THIRD_PARTY_LOGIN_FAIL(40001, "第三方登录失败");
|
||||
|
||||
|
||||
|
||||
private BusinessErrorCode(int errCode, String errMsg) {
|
||||
|
@@ -13,9 +13,9 @@ public class BusinessException extends Exception implements CommonError {
|
||||
}
|
||||
|
||||
// 接收自定义errMsg的方式构造业务异常
|
||||
public BusinessException(CommonError commonError,String errMsg){
|
||||
public BusinessException(CommonError commonError, String errMsg) {
|
||||
super();
|
||||
this.commonError=commonError;
|
||||
this.commonError = commonError;
|
||||
this.commonError.setErrMsg(errMsg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user