public class ServiceResult extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private Object |
data |
private String |
errorCode |
private String |
msg |
private String |
resultCode |
private String |
returnCode |
| 构造器和说明 |
|---|
ServiceResult(String resultCode,
String msg) |
ServiceResult(String resultCode,
String errorCode,
boolean errorMsg)
ServiceResult
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getData() |
String |
getErrorCode() |
String |
getMsg() |
String |
getResultCode() |
String |
getReturnCode() |
boolean |
isSuccess() |
void |
setData(Object data) |
void |
setErrorCode(String errorCode) |
void |
setMsg(String msg) |
void |
setResultCode(String resultCode) |
void |
setReturnCode(String returnCode) |
private String resultCode
private String errorCode
private String msg
private String returnCode
private Object data
public ServiceResult(String resultCode, String errorCode, boolean errorMsg)
resultCode - errorCode - errorMsg - 是否要输出错误日志public boolean isSuccess()
public String getResultCode()
public void setResultCode(String resultCode)
public String getErrorCode()
public void setErrorCode(String errorCode)
public String getMsg()
public void setMsg(String msg)
public String getReturnCode()
public void setReturnCode(String returnCode)
public Object getData()
public void setData(Object data)
Copyright © 2019. All rights reserved.