From 3aa5e0f5f83b7e3ace6fa412df8cc4612753756d Mon Sep 17 00:00:00 2001 From: copy rogers <40619032+rogerogers@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:08:55 +0800 Subject: [PATCH] chore: update getting start idl (#1158) Signed-off-by: rogerogers --- content/en/docs/hertz/getting-started/_index.md | 6 +++--- content/zh/docs/hertz/getting-started/_index.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/docs/hertz/getting-started/_index.md b/content/en/docs/hertz/getting-started/_index.md index cdce58bb0c..8e849819c4 100644 --- a/content/en/docs/hertz/getting-started/_index.md +++ b/content/en/docs/hertz/getting-started/_index.md @@ -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"); } ``` @@ -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"); } ``` diff --git a/content/zh/docs/hertz/getting-started/_index.md b/content/zh/docs/hertz/getting-started/_index.md index b82d7fc5f9..23f1472b1b 100644 --- a/content/zh/docs/hertz/getting-started/_index.md +++ b/content/zh/docs/hertz/getting-started/_index.md @@ -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"); } ``` @@ -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"); } ```