/*    */ package com.picc.grab.entity.common.vo;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ResultVO<T>
/*    */ {
/*    */   private boolean success;
/*    */   private String msg;
/*    */   private T data;
/*    */   
/*    */   public ResultVO(boolean success) {
/* 22 */     this.success = success;
/*    */   }
/*    */   
/*    */   public ResultVO(boolean success, String msg) {
/* 26 */     this.success = success;
/* 27 */     this.msg = msg;
/*    */   }
/*    */   
/*    */   public ResultVO(boolean success, String msg, T data) {
/* 31 */     this.success = success;
/* 32 */     this.msg = msg;
/* 33 */     this.data = data;
/*    */   }
/*    */   
/*    */   public static ResultVO success() {
/* 37 */     return new ResultVO(true);
/*    */   }
/*    */   
/*    */   public static ResultVO error(String msg) {
/* 41 */     return new ResultVO(false, msg);
/*    */   }
/*    */   
/*    */   public ResultVO<T> data(T data) {
/* 45 */     return new ResultVO(this.success, this.msg, data);
/*    */   }
/*    */   
/*    */   public boolean isSuccess() {
/* 49 */     return this.success;
/*    */   }
/*    */   
/*    */   public void setSuccess(boolean success) {
/* 53 */     this.success = success;
/*    */   }
/*    */   
/*    */   public String getMsg() {
/* 57 */     return this.msg;
/*    */   }
/*    */   
/*    */   public void setMsg(String msg) {
/* 61 */     this.msg = msg;
/*    */   }
/*    */   
/*    */   public T getData() {
/* 65 */     return this.data;
/*    */   }
/*    */   
/*    */   public void setData(T data) {
/* 69 */     this.data = data;
/*    */   }
/*    */ }


/* Location:              C:\Users\Administrator\Desktop\ROOT\WEB-INF\classes\!\com\picc\grab\entity\common\vo\ResultVO.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */