增加api optional Json
This commit is contained in:
@@ -8,7 +8,12 @@ info (
|
||||
)
|
||||
|
||||
type request {
|
||||
Data string `json:"data"`
|
||||
Data string `json:"data"`
|
||||
Options Options `json:"options,optional"`
|
||||
}
|
||||
|
||||
type Options {
|
||||
Json bool `json:"json,optional"`
|
||||
}
|
||||
|
||||
@server (
|
||||
@@ -152,5 +157,4 @@ service api-api {
|
||||
|
||||
@handler JRZQ4AA8
|
||||
post /JRZQ4AA8 (request) returns (string)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user