Browse Source

update the GetInt to GetInt64

pull/83/head
astaxie 8 years ago
parent
commit
930049f7de
  1. 2
      bee.go
  2. 4
      g_appcode.go

2
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.

4
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

Loading…
Cancel
Save