syaki
V2EX  ›  问与答

如何根据 IDL 文件生成 js/ts 的接口 class/interface

  •  
  •   syaki · Dec 13, 2019 · 2684 views
    This topic created in 2349 days ago, the information mentioned may be changed or developed.

    比如 java 服务的接口定义 class testRequest { string token; }

    class testResponse { bool res; }

    可以生成 js 的 request/response type class, 这样前端或 node 调用 java 服务的时候有 response 的返回值代码提示

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   977 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:22 · PVG 04:22 · LAX 13:22 · JFK 16:22
    ♥ Do have faith in what you're doing.