|  |  | 
 |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
 |  |  |  | 
 |  |  | @Schema(description = "统一返回结果") | 
 |  |  | public class WVPResult<T> { | 
 |  |  | public class WVPResult<T> implements Cloneable{ | 
 |  |  |  | 
 |  |  |     public WVPResult() { | 
 |  |  |     } | 
 |  |  | 
 |  |  |  | 
 |  |  |     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) { | 
 |  |  | 
 |  |  |         this.data = data; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Object clone() throws CloneNotSupportedException { | 
 |  |  |         return super.clone(); | 
 |  |  |     } | 
 |  |  | } |