syaki
V2EX  ›  问与答

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

  •  
  •   syaki · Dec 13, 2019 · 2731 views
    This topic created in 2369 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   ·   3380 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 00:34 · PVG 08:34 · LAX 17:34 · JFK 20:34
    ♥ Do have faith in what you're doing.