压测 dome
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
667 B

syntax = "v1"
type PgTestRequest {
Form string `json:"from"`
}
// 通用api返回参数
type PgTestResponse {
Success bool `json:"success,default=true"` // 是否成功
Message string `json:"message,optional"` // 消息
Result interface{} `json:"data,optional"` // 数据
Total int64 `json:"total,optional"` // 总数
}
@server (
group: PgTest
)
service demo-api {
@doc(
summary: "pg测试接口",
)
@handler PgInsertTestHandler
post /pg_test/insert returns (TestResponse)
@doc(
summary: "pg测试接口",
)
@handler PgSearchTestHandler
post /pg_test/search returns (TestResponse)
}