作者 yangfu

fix table preview

@@ -40,7 +40,7 @@ type TableQueryWhere struct { @@ -40,7 +40,7 @@ type TableQueryWhere struct {
40 } 40 }
41 41
42 func (w *TableQueryWhere) WithPageSize(page, size int) *TableQueryWhere { 42 func (w *TableQueryWhere) WithPageSize(page, size int) *TableQueryWhere {
43 - w.PageNumber = page - 1 43 + w.PageNumber = page
44 w.PageSize = size 44 w.PageSize = size
45 if page == 0 { 45 if page == 0 {
46 w.PageNumber = 0 46 w.PageNumber = 0