mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
update the GetInt to GetInt64
This commit is contained in:
parent
850e3dcfd4
commit
930049f7de
2
bee.go
2
bee.go
@ -25,7 +25,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "1.2.2"
|
const version = "1.2.3"
|
||||||
|
|
||||||
type Command struct {
|
type Command struct {
|
||||||
// Run runs the command.
|
// Run runs the command.
|
||||||
|
@ -1214,11 +1214,11 @@ func (this *{{ctrlName}}Controller) GetAll() {
|
|||||||
fields = strings.Split(v, ",")
|
fields = strings.Split(v, ",")
|
||||||
}
|
}
|
||||||
// limit: 10 (default is 10)
|
// limit: 10 (default is 10)
|
||||||
if v, err := this.GetInt("limit"); err == nil {
|
if v, err := this.GetInt64("limit"); err == nil {
|
||||||
limit = v
|
limit = v
|
||||||
}
|
}
|
||||||
// offset: 0 (default is 0)
|
// offset: 0 (default is 0)
|
||||||
if v, err := this.GetInt("offset"); err == nil {
|
if v, err := this.GetInt64("offset"); err == nil {
|
||||||
offset = v
|
offset = v
|
||||||
}
|
}
|
||||||
// sortby: col1,col2
|
// sortby: col1,col2
|
||||||
|
Loading…
Reference in New Issue
Block a user