mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
update the GetInt to GetInt64
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user