Skip to content

Commit

Permalink
chore: update getting start idl (#1158)
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <[email protected]>
  • Loading branch information
rogerogers authored Oct 16, 2024
1 parent df368bd commit 3aa5e0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/hertz/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ For more information on how to use hz, please refer to: [hz](/zh/docs/hertz/tuto
namespace go hello.world
service HelloService {
string Hello(1: string name);
string Hello(1: string name) (api.get="/hello");
}
```
Expand Down Expand Up @@ -172,8 +172,8 @@ If you need to make further updates to the project, you should use the `hz updat
namespace go hello.world
service HelloService {
string Hello(1: string name);
string Bye(1: string name);
string Hello(1: string name) (api.get="/hello");
string Bye(1: string name) (api.get="/bye");
}
```

Expand Down
6 changes: 3 additions & 3 deletions content/zh/docs/hertz/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ hz 是 Hertz 框架提供的一个用于生成代码的命令行工具,可以
namespace go hello.world
service HelloService {
string Hello(1: string name);
string Hello(1: string name) (api.get="/hello");
}
```

Expand Down Expand Up @@ -170,8 +170,8 @@ curl http://127.0.0.1:8888/ping
namespace go hello.world
service HelloService {
string Hello(1: string name);
string Bye(1: string name);
string Hello(1: string name) (api.get="/hello");
string Bye(1: string name) (api.get="/bye");
}
```

Expand Down

0 comments on commit 3aa5e0f

Please sign in to comment.