From 93f430a44936b752d5bd63dc1609bb52e808f2f3 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 29 Sep 2020 17:36:00 +0800 Subject: [PATCH] update shorturl doc --- doc/shorturl.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/shorturl.md b/doc/shorturl.md index 8d6afb58..f62241e3 100644 --- a/doc/shorturl.md +++ b/doc/shorturl.md @@ -78,7 +78,13 @@ ## 5. 编写API Gateway代码 -* 通过goctl生成`api/shorturl.api`并编辑,为了简洁,去除了文件开头的`info`,代码如下: +* 在`shorturl/api`目录下通过goctl生成`api/shorturl.api`: + + ```shell + goctl api -o shorturl.api + ``` + +* 编辑`api/shorturl.api`,为了简洁,去除了文件开头的`info`,代码如下: ```go type (