类 GatewayResponse
- java.lang.Object
-
- tech.codingless.core.gateway.data.GatewayResponse
-
public class GatewayResponse extends Object
统一响应结果- 作者:
- wanghongyan
-
-
构造器概要
构造器 构造器 说明 GatewayResponse()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 GatewayResponseaddContent(String name, Object value)GatewayResponsefail(String errorMessage)GatewayResponsefail(String errorCode, String errorMsg)StringgetCode()Map<String,Object>getContent()StringgetContentBiz()StringgetErrorCode()StringgetMsg()StringgetRequestId()GatewayResponsesetContentBiz(String contentBiz)GatewayResponsesuccess()
-
-
-
方法详细资料
-
getErrorCode
public String getErrorCode()
-
getContentBiz
public String getContentBiz()
-
getCode
public String getCode()
-
getMsg
public String getMsg()
-
fail
public GatewayResponse fail(String errorCode, String errorMsg)
-
fail
public GatewayResponse fail(String errorMessage)
-
success
public GatewayResponse success()
-
getRequestId
public String getRequestId()
-
setContentBiz
public GatewayResponse setContentBiz(String contentBiz)
- 参数:
contentBiz- 为了方便统一内容拦截,请设置数据类型- 返回:
- this
-
addContent
public GatewayResponse addContent(String name, Object value)
-
-