Class Response<T>
java.lang.Object
cn.toint.oktool.model.Response<T>
- All Implemented Interfaces:
WriteValue, Serializable
- Since:
- 2025/7/12
- Author:
- Toint
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T> Response<T> fail()static <T> Response<T> static <T> Response<T> static <T> Response<T> static <T> Response<T> fail(T data) getCode()getData()getMsg()inthashCode()voidvoidvoidvoidsetTimestamp(Long timestamp) voidsetTraceId(String traceId) static <T> Response<T> success()static <T> Response<T> success(T data) toString()Methods inherited from interface WriteValue
toJsonBytes, toJsonString
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
success
-
success
-
fail
-
fail
-
fail
-
fail
-
fail
-
getCode
-
setCode
-
getMsg
-
setMsg
-
getData
-
setData
-
getTimestamp
-
setTimestamp
-
getTraceId
-
setTraceId
-
equals
-
hashCode
-
toString
-