From ba3ce10e3eaba6e3576ae725e85076ba54e1e2d8 Mon Sep 17 00:00:00 2001 From: lj-wsdj <1134294381@qq.com> Date: Wed, 8 May 2024 15:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Page=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main_test.go | 4 ++-- util/page.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main_test.go b/main_test.go index b5a2f3d..4ec09b0 100644 --- a/main_test.go +++ b/main_test.go @@ -19,7 +19,7 @@ func (p *Page) Init() { p.SetPageIndex(1) } if p.PageSize == 0 { - p.SetpageSize(10) + p.SetPageSize(10) } } @@ -43,7 +43,7 @@ func (p *Page) SetPageIndex(pageIndex int) { p.PageIndex = pageIndex } -func (p *Page) SetpageSize(pageSize int) { +func (p *Page) SetPageSize(pageSize int) { p.PageSize = pageSize } diff --git a/util/page.go b/util/page.go index 9836d13..4ac5f19 100644 --- a/util/page.go +++ b/util/page.go @@ -6,6 +6,6 @@ type Page interface { GetPageSize() int GetTotal() int SetPageIndex(int) - SetpageSize(int) + SetPageSize(int) SetTotal(int) }