public interface CodeInfo extends Serializable
可以使用枚举对象定义
Modifier and Type | Method and Description |
---|---|
int |
code()
获取code
|
String |
message()
获取message
|
default <T> HttpWrapper<T> |
toHttpWrapper()
转为 httpWrapper
|
default <T> RpcWrapper<T> |
toRpcWrapper()
转为 rpcWrapper
|
int code()
String message()
default <T> HttpWrapper<T> toHttpWrapper()
T
- THttpWrapper
default <T> RpcWrapper<T> toRpcWrapper()
T
- TRpcWrapper
Copyright © 2024. All rights reserved.