Package | Description |
---|---|
cn.orionsec.kit.lang.define.wrapper | |
cn.orionsec.kit.lang.exception.argument | |
cn.orionsec.kit.lang.utils |
Modifier and Type | Method and Description |
---|---|
RpcWrapper<T> |
RpcWrapper.addErrorMessage(String errorMsg) |
RpcWrapper<T> |
RpcWrapper.code(int code) |
RpcWrapper<T> |
RpcWrapper.data(T data) |
static <T> RpcWrapper<T> |
RpcWrapper.error()
失败
|
static <T> RpcWrapper<T> |
RpcWrapper.error(String msg) |
static <T> RpcWrapper<T> |
RpcWrapper.error(String msg,
Object... params) |
static <T> RpcWrapper<T> |
RpcWrapper.error(Throwable t) |
static <T> RpcWrapper<T> |
RpcWrapper.get()
初始化
|
<E> RpcWrapper<E> |
RpcWrapper.map(Function<T,E> mapping)
映射
|
RpcWrapper<T> |
RpcWrapper.msg(String msg) |
static <T> RpcWrapper<T> |
RpcWrapper.of(CodeInfo info)
定义
|
static <T> RpcWrapper<T> |
RpcWrapper.of(CodeInfo info,
T data) |
static <T> RpcWrapper<T> |
RpcWrapper.of(int code) |
static <T> RpcWrapper<T> |
RpcWrapper.of(int code,
String msg) |
static <T> RpcWrapper<T> |
RpcWrapper.of(int code,
String msg,
T data) |
static <T> RpcWrapper<T> |
RpcWrapper.success()
成功
|
static <T> RpcWrapper<T> |
RpcWrapper.success(T data) |
static RpcWrapper<Object> |
WrapperAdapter.toRpc(Map<?,?> map) |
static <T> RpcWrapper<T> |
WrapperAdapter.toRpc(Map<?,?> map,
Class<T> dataClass) |
static RpcWrapper<Object> |
WrapperAdapter.toRpc(String json) |
static <T> RpcWrapper<T> |
WrapperAdapter.toRpc(String json,
Class<T> dataClass) |
RpcWrapper<T> |
HttpWrapper.toRpcWrapper() |
default <T> RpcWrapper<T> |
CodeInfo.toRpcWrapper()
转为 rpcWrapper
|
RpcWrapper<T> |
RpcWrapper.trace(Object object) |
Modifier and Type | Method and Description |
---|---|
RpcWrapper<?> |
RpcWrapperException.getWrapper() |
Constructor and Description |
---|
RpcWrapperException(RpcWrapper<?> wrapper) |
RpcWrapperException(RpcWrapper<?> wrapper,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static RpcWrapperException |
Exceptions.rpcWrapper(RpcWrapper<?> wrapper) |
static RpcWrapperException |
Exceptions.rpcWrapper(RpcWrapper<?> wrapper,
Throwable t) |
static <T> T |
Valid.validWrapper(RpcWrapper<T> wrapper) |
Copyright © 2024. All rights reserved.