Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js/ts api sdk? #2

Open
ziqiangai opened this issue Sep 14, 2023 · 2 comments
Open

js/ts api sdk? #2

ziqiangai opened this issue Sep 14, 2023 · 2 comments

Comments

@ziqiangai
Copy link

inputCommandCreate.cmd = DemoCmd.cmd;
// 模拟请求参数
HelloReq helloReq = new HelloReq();
helloReq.name = "塔姆";
// ---------------- 模拟请求 1-0 ----------------
ofCommand(DemoCmd.here).callback(HelloReq.class, result -> {
HelloReq value = result.getValue();
log.info("value : {}", value);
}).setDescription("here").setRequestData(helloReq);

这样的接口在用 java 做客户端时会非常方便,有 js/ts 同样的实现吗

@iohao
Copy link
Owner

iohao commented Sep 14, 2023

@iohao
Copy link
Owner

iohao commented Sep 14, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants