mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 11:18:02 +08:00
comment update for gdb.Model.Page
This commit is contained in:
parent
15d99eee46
commit
3d8451d5d0
@ -140,7 +140,7 @@ func (m *Model) Offset(offset int) *Model {
|
||||
|
||||
// Page sets the paging number for the model.
|
||||
// The parameter <page> is started from 1 for paging.
|
||||
// Note that, it differs that the Limit function start from 0 for "LIMIT" statement.
|
||||
// Note that, it differs that the Limit function starts from 0 for "LIMIT" statement.
|
||||
func (m *Model) Page(page, limit int) *Model {
|
||||
model := m.getModel()
|
||||
if page <= 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user