Skip to main content

全局返回值

返回结果类型若无特殊说明,均为application/json

字段类型说明
statusInt状态码;0表示正常,非0表示错误,错误请参考全局错误码
messageString状态码说明
result对象或数组返回结果

对象类型返回示例:

{
"status": 0,
"message": "Everything is ok.",
"result": {
"key" : "value"
}
}

数组类型返回示例:

{
"status": 0,
"message": "Everything is ok.",
"result": [
{"key" : "value"},
{"key" : "value"}
]
}