mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-08 07:30:01 +08:00
18 lines
323 B
Plaintext
18 lines
323 B
Plaintext
|
|
import "importApi.api"
|
||
|
|
|
||
|
|
type AnotherRequest {
|
||
|
|
Name string `path:"name,options=you|me"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type AnotherResponse {
|
||
|
|
Message string `json:"message"` // message
|
||
|
|
}
|
||
|
|
|
||
|
|
@server(
|
||
|
|
group: greet
|
||
|
|
)
|
||
|
|
service A-api {
|
||
|
|
@handler AnotherImportHandler
|
||
|
|
get /greet/from/another/:name(AnotherRequest) returns (AnotherResponse)
|
||
|
|
}
|