Skip to content

Commit 93f430a

Browse files
committed
update shorturl doc
1 parent d1b303f commit 93f430a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/shorturl.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@
7878

7979
## 5. 编写API Gateway代码
8080

81-
* 通过goctl生成`api/shorturl.api`并编辑,为了简洁,去除了文件开头的`info`,代码如下:
81+
*`shorturl/api`目录下通过goctl生成`api/shorturl.api`
82+
83+
```shell
84+
goctl api -o shorturl.api
85+
```
86+
87+
* 编辑`api/shorturl.api`,为了简洁,去除了文件开头的`info`,代码如下:
8288

8389
```go
8490
type (

0 commit comments

Comments
 (0)