类 Result
java.lang.Object
com.alibaba.fastjson.JSON
com.alibaba.fastjson.JSONObject
cn.benma666.iframe.Result
- 所有已实现的接口:
com.alibaba.fastjson.JSONAware,com.alibaba.fastjson.JSONStreamAware,Serializable,Cloneable,InvocationHandler,Map<String,Object>
- 另请参阅:
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明static final String状态码
优先采用:https://www.runoob.com/http/http-status-codes.htmlstatic final String附加信息对象static final String数据类型,默认json,还支持文件static final String消息static final String是否成功从类继承的字段 com.alibaba.fastjson.JSON
DEFAULT_GENERATE_FEATURE, DEFAULT_PARSER_FEATURE, DEFAULT_TYPE_KEY, defaultLocale, defaultTimeZone, DEFFAULT_DATE_FORMAT, VERSION -
构造器概要
构造器 -
方法概要
从类继承的方法 com.alibaba.fastjson.JSONObject
clear, clone, containsKey, containsValue, entrySet, equals, fluentClear, fluentPut, fluentPutAll, fluentRemove, get, getBigDecimal, getBigInteger, getBoolean, getBooleanValue, getByte, getBytes, getByteValue, getDate, getDouble, getDoubleValue, getFloat, getFloatValue, getInnerMap, getInteger, getIntValue, getJSONArray, getJSONObject, getLong, getLongValue, getObject, getObject, getObject, getShort, getShortValue, getSqlDate, getString, getTimestamp, hashCode, invoke, isEmpty, keySet, put, putAll, remove, set, size, toJavaObject, toJavaObject, values从类继承的方法 com.alibaba.fastjson.JSON
addMixInAnnotations, clearMixInAnnotations, getMixInAnnotations, handleResovleTask, isValid, isValidArray, isValidObject, parse, parse, parse, parse, parse, parse, parse, parse, parseArray, parseArray, parseArray, parseArray, parseArray, parseArray, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, removeMixInAnnotations, setDefaultTypeKey, toJavaObject, toJavaObject, toJavaObject, toJSON, toJSON, toJSON, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytesWithFastJsonConfig, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONStringWithDateFormat, toJSONStringZ, toString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONStringTo, writeJSONStringWithFastJsonConfig从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
字段详细资料
-
构造器详细资料
-
Result
public Result(boolean status) -
Result
-
Result
-
-
方法详细资料
-
success
-
success
-
failed
-
failed
-
parse
-
parse
-
addMsg
追加消息- 参数:
msg- 要追加的消息
-
isStatus
public boolean isStatus()- 返回:
- status
-
setStatus
public void setStatus(boolean status) - 参数:
status- the status to set
-
getMsg
- 返回:
- the msg
-
setMsg
- 参数:
msg- the msg to set
-
getCode
public int getCode() -
setCode
public void setCode(int code) -
getData
- 返回:
- data
-
getData
将data转换为指定类型后获取- 参数:
t- 要转为的类型
-
setData
- 参数:
data- the data to set
-
getDateType
-
setDateType
-
toString
- 覆盖:
toString在类中com.alibaba.fastjson.JSON
-