Blame view

src/main/java/com/objecteye/entity/PageResult.java 660 Bytes
c83b5b39   Liu Haoyu   项目创建, 集成spring-se...
1
2
3
4
5
6
7
  package com.objecteye.entity;
  
  import java.io.Serializable;
  import java.util.List;
  
  public class PageResult<T> implements Serializable {
  
40c853a1   Liu Haoyu   去掉MySQL相关内容, 去掉my...
8
9
      private static final long serialVersionUID = 3161527748709808462L;
  
c83b5b39   Liu Haoyu   项目创建, 集成spring-se...
10
      private long total;
40c853a1   Liu Haoyu   去掉MySQL相关内容, 去掉my...
11
  
c83b5b39   Liu Haoyu   项目创建, 集成spring-se...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
      private List<T> row;
  
      public PageResult() {
      }
  
      public PageResult(long total, List<T> row) {
          this.total = total;
          this.row = row;
      }
  
      public long gettotal() {
          return total;
      }
  
      public void settotal(int total) {
          this.total = total;
      }
  
      public List<T> getRow() {
          return row;
      }
  
      public void setRow(List<T> row) {
          this.row = row;
      }
  }