Class AliAuthController
java.lang.Object
com.sankcrm.erp.auth.interfaces.thirdauth.ali.AliAuthController
支付宝对接接口
- Since:
- 2.1.7
- Author:
- zhsxin
- create time:
- 2024/1/3 下午3:15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.sankcrm.erp.mvc.application.readmodel.Response<String> auth(AliAuthCodeUriQuery query, jakarta.servlet.http.HttpServletRequest request) 获取支付宝授权地址voidauth(AliAuthCodeUriQuery query, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 重定向支付宝授权页面voidcodeVerify(AliCodeVerifyCommand command, jakarta.servlet.http.HttpServletResponse response) 验证支付宝授权码com.sankcrm.erp.mvc.application.readmodel.Response<com.sankcrm.erp.auth.application.thirdauth.command.request.BizResult> request(com.sankcrm.erp.auth.sdk.thirdauth.command.alirequest.AliRequestCommand command) 请求支付宝接口
-
Constructor Details
-
AliAuthController
public AliAuthController()
-
-
Method Details
-
auth
@GetMapping("/v1/app/authz/ali/redirect") public void auth(AliAuthCodeUriQuery query, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception 重定向支付宝授权页面- Parameters:
query- 授权参数request- HttpServletRequestresponse- HttpServletResponse- Throws:
Exception- 授权失败
-
auth
@GetMapping("/v1/app/authz/ali/redirect_uri") public com.sankcrm.erp.mvc.application.readmodel.Response<String> auth(AliAuthCodeUriQuery query, jakarta.servlet.http.HttpServletRequest request) throws Exception 获取支付宝授权地址- Parameters:
query- 授权参数request- HttpServletRequest- Returns:
- 地址
- Throws:
Exception- 授权失败
-
request
@PostMapping("/v1/api/auth/ali/request") public com.sankcrm.erp.mvc.application.readmodel.Response<com.sankcrm.erp.auth.application.thirdauth.command.request.BizResult> request(@RequestBody com.sankcrm.erp.auth.sdk.thirdauth.command.alirequest.AliRequestCommand command) throws com.sankcrm.erp.common.exception.CoreException 请求支付宝接口- Parameters:
command- 请求参数- Returns:
- 请求结果
- Throws:
com.sankcrm.erp.common.exception.CoreException- 请求异常
-
codeVerify
@GetMapping("/v1/app/authz/ali/code/redirect") public void codeVerify(AliCodeVerifyCommand command, jakarta.servlet.http.HttpServletResponse response) 验证支付宝授权码- Parameters:
command- 支付宝授权码response- HttpServletResponse
-