1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-21 01:10:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

第三方登录回调后登陆系统用户逻辑基本完成

This commit is contained in:
2022-04-04 19:20:07 +08:00
parent 71feaffeb9
commit 54911675a1
20 changed files with 502 additions and 41 deletions

View File

@@ -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) {

View File

@@ -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);
}