public class ServiceResp<T> extends BaseDO
| 构造器和说明 |
|---|
ServiceResp()
已过时。
|
@Deprecated public ServiceResp()
public static <T> ServiceResp<T> newInstanceSuccess()
public static <T> ServiceResp<T> newInstanceSuccess(T bean)
public static <T> ServiceResp<T> newInstanceFail(String msg)
public static <T> ServiceResp<T> newInstanceDataNotFoundFail(String msg)
public static <T> ServiceResp<T> newInstanceFail(Integer code, String msg)
public static <T> ServiceResp<T> newInstanceFail(BaseErrorCode errorCode, String msg)
public static <T> ServiceResp<T> newInstanceFail(BaseErrorCode errorCode)
public static <T> ServiceResp<T> newInstanceFail(Throwable t)
public static <T> ServiceResp<T> newInstanceFail(BaseServiceException ex)
public static <T> ServiceResp<T> newInstanceFail(Exception e, BaseErrorCode errorCode)
public static <T> ServiceResp<T> newInstanceFail(String code, String msg)
public static <T> ServiceResp<T> newInstanceFail(String code, String msg, Map<String,Object> errorData)
public String getRespCode()
public void setRespCode(String respCode)
public String getRespMsg()
public void setRespMsg(String respMsg)
public T getBean()
public void setBean(T bean)
public boolean isSuccess()
public void setSuccess(boolean success)
public boolean isFailure()
public String getAppId()
public void setAppId(String appId)
public ServiceResp<T> checkError(String code, RespCallback respCallback)
public ServiceResp<T> checkError(BaseErrorCode code, RespCallback respCallback)
public ServiceResp<T> checkError(RespCallback respCallback)
Copyright © 2018. All rights reserved.