接口的使用
red.mulan.boot.common.result.Result
使用Result的程序包
程序包
说明
-
red.mulan.boot.common.code中Result的使用
-
red.mulan.boot.common.exception中Result的使用
参数类型为Result的red.mulan.boot.common.exception中的构造器限定符构造器说明BizException(Result result) Constructs a new runtime exception withnullas its detail message. -
red.mulan.boot.common.handler中Result的使用
参数类型为Result的red.mulan.boot.common.handler中的方法修饰符和类型方法说明voidResponseHandler.responseJson(int status, jakarta.servlet.http.HttpServletResponse response, @NotNull Result result) 响应JSON数据voidResponseHandler.responseJson(jakarta.servlet.http.HttpServletResponse response, @NotNull Result result) 响应JSON数据 -
red.mulan.boot.common.result中Result的使用
参数类型为Result的red.mulan.boot.common.result中的方法修饰符和类型方法说明static <R> ResponseResult<R>返回自定义操作失败响应信息static <R> ResponseResult<R>返回自定义操作失败响应信息 带数据返回参数类型为Result的red.mulan.boot.common.result中的构造器