From 621d33ecbe475a655f659e620e11519916180509 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 8 Aug 2020 13:53:39 +0800 Subject: [PATCH] update goctl doc --- readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 53ccbdaf..d45a0b8c 100644 --- a/readme.md +++ b/readme.md @@ -163,5 +163,10 @@ go-zero是一个集成了各种工程实践的包含web和rpc框架,有如下 * 可以在servicecontext.go里面传递依赖给logic,比如mysql, redis等 * 在api定义的get/post/put/delete等请求对应的logic里增加业务处理逻辑 - 可以根据api文件生成前端需要的Java, TypeScript, Dart, JavaScript代码。 +4. 可以根据api文件生成前端需要的Java, TypeScript, Dart, JavaScript代码 + ```shell + goctl api java -api greet.api -dir greet + goctl api dart -api greet.api -dir greet + ... + ```