public class InterfaceResult<Data> extends DefaultResult<String,Data>
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) org.slf4j.Logger |
logger |
code, consumeTime, data, desc, msg, startTime| 构造器和说明 |
|---|
InterfaceResult() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
defaultErrorCode() |
String |
defaultErrorMsg() |
String |
defaultSuccessCode() |
String |
defaultSuccessMsg() |
String |
getCode() |
Integer |
getCodeInt()
获取整数类型的接口响应编码
|
boolean |
isSuccess() |
void |
setCode(String s) |
error, error, error, fail, fail, getConsumeTime, getData, getDesc, getMsg, getStartTime, innerConsumeTime, setConsumeTime, setData, setDesc, setMsg, setStartTime, success, success, success, success, tip, toJSONStringpublic void setCode(String s)
setCode 在类中 DefaultResult<String,Data>public String getCode()
getCode 在类中 DefaultResult<String,Data>public Integer getCodeInt()
public String defaultSuccessCode()
defaultSuccessCode 在类中 DefaultResult<String,Data>public String defaultSuccessMsg()
defaultSuccessMsg 在类中 DefaultResult<String,Data>public String defaultErrorCode()
defaultErrorCode 在类中 DefaultResult<String,Data>public String defaultErrorMsg()
defaultErrorMsg 在类中 DefaultResult<String,Data>public boolean isSuccess()
isSuccess 在类中 DefaultResult<String,Data>Copyright © 2024. All rights reserved.