From 930049f7decb62febe4cc2fcf3efafb792128464 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 5 Nov 2014 13:53:38 +0800 Subject: [PATCH] update the GetInt to GetInt64 --- bee.go | 2 +- g_appcode.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bee.go b/bee.go index e8fc482..f64c163 100644 --- a/bee.go +++ b/bee.go @@ -25,7 +25,7 @@ import ( "strings" ) -const version = "1.2.2" +const version = "1.2.3" type Command struct { // Run runs the command. diff --git a/g_appcode.go b/g_appcode.go index aca7023..d743e60 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -1214,11 +1214,11 @@ func (this *{{ctrlName}}Controller) GetAll() { fields = strings.Split(v, ",") } // limit: 10 (default is 10) - if v, err := this.GetInt("limit"); err == nil { + if v, err := this.GetInt64("limit"); err == nil { limit = v } // offset: 0 (default is 0) - if v, err := this.GetInt("offset"); err == nil { + if v, err := this.GetInt64("offset"); err == nil { offset = v } // sortby: col1,col2