public class ApiResponse extends Object
| Constructor and Description |
|---|
ApiResponse(int status,
String message,
Object result)
使用指定的业务代码和信息创建 API 响应
|
ApiResponse(Object result)
创建默认的 API 响应, 业务代码为 200, 信息为空字符串
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
获取信息
|
Object |
getResult()
获取调用结果
|
int |
getStatus()
获取业务代码
|
long |
getTimestamp()
获取时间戳
|
public ApiResponse(Object result)
result - 调用结果Copyright © 2017. All rights reserved.