public class Response extends Object
Description: Response Model
Response.builder().build()
Response.builder().error()
Response.builder().error('common error')
Response.builder().push("name","张").build()
Response.builder().pop("name","张").build()
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Response.Builder |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
code_error |
static int |
code_success
Default status code if success
|
static String |
error |
static String |
success |
| 限定符和类型 | 方法和说明 |
|---|---|
static Response.Builder |
builder() |
Map<String,Object> |
getBody() |
int |
getCode() |
String |
getMessage() |
long |
getTimestamp() |
public static final int code_success
public static final int code_error
public int getCode()
public String getMessage()
public long getTimestamp()
public static Response.Builder builder()
Copyright © 2020. All rights reserved.