public class BaseResult<T> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
code
app code
|
protected String |
duration
time unit is second
|
protected Long |
handleTime
response time in timestamp
|
protected String |
msg
success/tip/error msg
|
protected T |
result
data body
|
| 构造器和说明 |
|---|
BaseResult() |
protected int code
protected String msg
protected Long handleTime
protected String duration
protected T result
public int getCode()
public void setCode(int code)
public String getMsg()
public void setMsg(String msg)
public Long getHandleTime()
public void setHandleTime(Long handleTime)
public String getDuration()
public void setDuration(String duration)
public T getResult()
public void setResult(T result)
Copyright © 2020. All rights reserved.