syaki
V2EX  ›  问与答

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

  •  
  •   syaki · Dec 13, 2019 · 2758 views
    This topic created in 2383 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   ·   6017 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:38 · PVG 10:38 · LAX 19:38 · JFK 22:38
    ♥ Do have faith in what you're doing.