Class AliAuthController

java.lang.Object
com.sankcrm.erp.auth.interfaces.thirdauth.ali.AliAuthController

@RestController public class AliAuthController extends Object
支付宝对接接口
Since:
2.1.7
Author:
zhsxin
create time:
2024/1/3 下午3:15
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sankcrm.erp.mvc.application.readmodel.Response<String>
    auth(AliAuthCodeUriQuery query, jakarta.servlet.http.HttpServletRequest request)
    获取支付宝授权地址
    void
    auth(AliAuthCodeUriQuery query, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    重定向支付宝授权页面
    void
    codeVerify(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)
    请求支付宝接口

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - HttpServletRequest
      response - 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