/*    */ package com.picc.grab.entity.common.vo;
/*    */ 
/*    */ import com.baomidou.mybatisplus.plugins.Page;
/*    */ import java.util.ArrayList;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class PageVO<T>
/*    */ {
/*    */   protected Integer recordsTotal;
/*    */   protected Integer recordsFiltered;
/*    */   private T data;
/*    */   
/*    */   public PageVO() {}
/*    */   
/*    */   public PageVO(Integer recordsTotal, Integer recordsFiltered, T data) {
/* 28 */     this.recordsTotal = recordsTotal;
/* 29 */     this.recordsFiltered = recordsFiltered;
/* 30 */     this.data = data;
/*    */   }
/*    */   
/*    */   public PageVO<T> result(Page page) {
/* 34 */     return new PageVO(Integer.valueOf(page.getTotal()), Integer.valueOf(page.getTotal()), (T)page.getRecords());
/*    */   }
/*    */   
/*    */   public PageVO<T> result() {
/* 38 */     return new PageVO(Integer.valueOf(0), Integer.valueOf(0), (T)new ArrayList());
/*    */   }
/*    */   
/*    */   public Integer getRecordsTotal() {
/* 42 */     return this.recordsTotal;
/*    */   }
/*    */   
/*    */   public void setRecordsTotal(Integer recordsTotal) {
/* 46 */     this.recordsTotal = recordsTotal;
/*    */   }
/*    */   
/*    */   public Integer getRecordsFiltered() {
/* 50 */     return this.recordsFiltered;
/*    */   }
/*    */   
/*    */   public void setRecordsFiltered(Integer recordsFiltered) {
/* 54 */     this.recordsFiltered = recordsFiltered;
/*    */   }
/*    */   
/*    */   public T getData() {
/* 58 */     return this.data;
/*    */   }
/*    */   
/*    */   public void setData(T data) {
/* 62 */     this.data = data;
/*    */   }
/*    */ }


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