update 对接内蒙古平台

This commit is contained in:
2024-04-19 17:10:51 +08:00
parent 367993abf3
commit ef77a4e0ee
3 changed files with 54 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.common.exception;
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
import lombok.Data;
@@ -26,4 +27,9 @@ public class BusinessException extends RuntimeException{
this.code = code;
this.message = message;
}
public BusinessException(ThirdPartyReturnCodeEnum thirdPartyReturnCodeEnum) {
this.code = thirdPartyReturnCodeEnum.getRet();
this.message = thirdPartyReturnCodeEnum.getMsg();
}
}