Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions doc/shorturl-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ And now, let’s walk through the complete flow of quickly creating a microservi

* install etcd, mysql, redis

* create the working dir `shorturl` and `shorturl/api`

* in `shorturl` dir, execute `go mod init shorturl` to initialize `go.mod`

* install protoc-gen-go

```
Expand All @@ -69,13 +73,9 @@ And now, let’s walk through the complete flow of quickly creating a microservi
* install goctl

```shell
GO111MODULE=on go get -u github.com/zeromicro/go-zero/tools/goctl
go install github.com/zeromicro/go-zero/tools/goctl@latest
```

* create the working dir `shorturl` and `shorturl/api`

* in `shorturl` dir, execute `go mod init shorturl` to initialize `go.mod`

## 5. Write code for API Gateway

* use goctl to generate `api/shorturl.api`
Expand Down Expand Up @@ -457,7 +457,7 @@ Till now, we’ve done the modification of API Gateway. All the manually added c
}
```

* modify `rpc/shorten/internal/logic/shortenlogic.go`, looks like:
* modify `rpc/transform/internal/logic/shortenlogic.go`, looks like:

```go
func (l *ShortenLogic) Shorten(in *transform.ShortenReq) (*transform.ShortenResp, error) {
Expand Down