| 限定符和类型 | 类和说明 |
|---|---|
static class |
RespData.Config |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 方法和说明 |
|---|---|
static RespData |
failure(Object sc,
String sm)
Failure Response
|
static RespData |
failure(String sm)
Failure Response
|
<T> T |
getData()
Get Response data
|
Object |
getSc()
Get Current Request's response status code
|
String |
getSm()
Get Current Request's response status message
|
static RespData |
invalidReq()
invalid request
|
static RespData |
invalidResp()
invalid response
|
static RespData |
ret(RespData data)
Response result
|
static RespData |
success()
Success Response
|
static RespData |
success(Object data)
Success Response
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic static RespData invalidReq()
public static RespData invalidResp()
public static RespData success()
public static RespData success(Object data)
public static RespData failure(String sm)
sm - response status messagepublic static RespData failure(Object sc, String sm)
sc - response status codesm - response status messagepublic Object getSc()
public String getSm()
public <T> T getData()
Copyright © 2021. All rights reserved.