Type Definitions
Promise
Properties:
| Name | Type | Description | 
|---|---|---|
| then | function | 正常回调,参数为: IMResponse | 
| catch | function | 异常回调,参数为: IMError | 
IMResponse
Properties:
| Name | Type | Description | 
|---|---|---|
| code | number | 返回码, 值为0 | 
| data | * | API 相关数据 | 
IMError
Properties:
| Name | Type | Description | 
|---|---|---|
| code | number | 错误码 | 
| message | String | 错误信息 | 
| stack | Object | 错误堆栈信息 | 
错误对象