public class Result<T> extends BaseResponse
序列化依赖 getter 函数,不依赖构造函数
所以此处的注解只需使用 @Data
不需使用 @NoArgsConstructor 和 @AllArgsConstructor
Result()
static <T> Result<T>
error(int code, String message, String description)
static Result<?>
ok()
ok(String message, String description, T data)
ok(T data)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Result()
public static Result<?> ok()
public static <T> Result<T> ok(T data)
public static <T> Result<T> ok(String message, String description, T data)
public static <T> Result<T> error(int code, String message, String description)
Copyright © 2023 Irvingsoft. All rights reserved.