Giter VIP home page Giter VIP logo

yunzhanghu-sdk-example's Introduction

云账户结算系统SDK封装示例

该仓库提供一种使用命令模式封装第三方组件的案例.

在命令模式下,调用如下,简单明了,非常适合封装第三方服务.

  /**
   * 初始化调用者
   */
  private YunzhanghuClient client =
      new DefaultYunzhanghuClient("0123456", "sha256",
          "78f9b4fad3481fbce1df0b30eee58577", "123456788765432112345678", new WebUtils());

  @Test
  public void test() {
    // 构造银行卡三要素验证命令
    VerifyBankcardThreeFactorReq req = new VerifyBankcardThreeFactorReq();
    req.setCardNo("");
    req.setIdCard("");
    req.setRealName("");

    // 发送命令,并拿到返回值
    VerifyBankcardThreeFactorResp resp = client.execute(req);

    System.out.println(resp);
  }

yunzhanghu-sdk-example's People

Stargazers

 avatar

Watchers

 avatar

Forkers

liujian319

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.