V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
syaki
V2EX  ›  问与答

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

  •  
  •   syaki · Dec 13, 2019 · 2615 views
    This topic created in 2328 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   ·   2692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:56 · PVG 23:56 · LAX 08:56 · JFK 11:56
    ♥ Do have faith in what you're doing.