Skip to content

Commit

Permalink
update shorturl doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Sep 29, 2020
1 parent d1b303f commit 93f430a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/shorturl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 93f430a

Please sign in to comment.