public class ResultWrapper<T> extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ResultWrapper.Builder<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> ResultWrapper<T> |
fail() |
static <T> ResultWrapper<T> |
fail(int code,
String message) |
static <T> ResultWrapper<T> |
fail(int code,
String message,
T data) |
static <T> ResultWrapper<T> |
fail(RespBeanEnum respBeanEnum) |
static <T> ResultWrapper<T> |
fail(String message) |
static <T> ResultWrapper<T> |
ok() |
static <T> ResultWrapper<T> |
ok(T data) |
static <T> ResultWrapper<T> |
ok(T data,
String message) |
public static <T> ResultWrapper<T> ok()
public static <T> ResultWrapper<T> ok(T data)
public static <T> ResultWrapper<T> ok(T data, String message)
public static <T> ResultWrapper<T> fail()
public static <T> ResultWrapper<T> fail(String message)
public static <T> ResultWrapper<T> fail(int code, String message)
public static <T> ResultWrapper<T> fail(int code, String message, T data)
public static <T> ResultWrapper<T> fail(RespBeanEnum respBeanEnum)
Copyright © 2025. All rights reserved.