648540858
2024-05-29 764d04b497356ba6bcbb75fd42b51eca750f7223
src/main/java/com/genersoft/iot/vmp/vmanager/bean/WVPResult.java
old mode 100644 new mode 100755
@@ -4,7 +4,7 @@
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description = "统一返回结果")
public class WVPResult<T> {
public class WVPResult<T> implements Cloneable{
    public WVPResult() {
    }
@@ -26,6 +26,10 @@
    public static <T> WVPResult<T> success(T t, String msg) {
        return new WVPResult<>(ErrorCode.SUCCESS.getCode(), msg, t);
    }
    public static WVPResult success() {
        return new WVPResult<>(ErrorCode.SUCCESS.getCode(), ErrorCode.SUCCESS.getMsg(), null);
    }
    public static <T> WVPResult<T> success(T t) {
@@ -64,4 +68,8 @@
        this.data = data;
    }
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}