修改api结构
This commit is contained in:
14
server/api/ping/ping.api
Normal file
14
server/api/ping/ping.api
Normal file
@@ -0,0 +1,14 @@
|
||||
type PingReq {}
|
||||
|
||||
type PingResp {
|
||||
Msg string `json:"message"`
|
||||
}
|
||||
|
||||
@server (
|
||||
group: ping
|
||||
)
|
||||
service ping-api {
|
||||
@handler PingHandler
|
||||
get /ping (PingReq) returns (PingResp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user