(goctl): fix prefix syntax (#4113)

This commit is contained in:
kesonan
2024-04-30 17:11:08 +08:00
committed by GitHub
parent 04116f647d
commit a9d27cda8a
4 changed files with 37 additions and 5 deletions

View File

@@ -17,5 +17,6 @@
prefix1: /v1/v2_test/v2-beta
prefix2: v1/v2_test/v2-beta
prefix3: v1/v2_
prefix4: a-b-c
summary:"test"
)

View File

@@ -180,12 +180,14 @@ service example {
post /example/array/base (DemoOfArrayReq) returns ([]string)
}
@server (
group: /prefix
prefix: foo-bar
summary: "test"
)
service example {
@handler nestDemo1
post /example/nest (NestDemoReq1) returns (NestDemoResp1)
@handler nestDemo2
post /example/nest2 (NestDemoReq2) returns (NestDemoResp2)
@handler prefixDemo
post /example/prefix (PostFormReq) returns (PostFormResp)
}
@server (