Skip to content

Return value format description

huyaohua edited this page Jan 19, 2020 · 1 revision

The return value is json format:

parameter name Types of Description
success boolean Interface call result, true call succeeds, false call fails
data Object The success of the call returns the result. Only the success of the call is returned. Most of them are json format.
code int Call failure code, only to return if the call fails
message String The reason of the failure of the call, only the call fails to return
The call returns successfully:
{
    "success":true,
    "data":data  
}
Call failed to return:
{
    "success":false,
    "code":code,
    "message":"message"
}