update shorturl doc

This commit is contained in:
kevin
2020-09-29 17:36:00 +08:00
parent d1b303fe7e
commit 93f430a449

View File

@@ -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 (