获取最新的搜索关键字。这里的查询error可以忽略 @param p 页面 @param listRows 每页显示记录 @return rows 查询到的记录
(p, listRows int)
| 21 | //@param listRows 每页显示记录 |
| 22 | //@return rows 查询到的记录 |
| 23 | func (this *SearchLog) List(p, listRows int) (rows []SearchLog) { |
| 24 | orm.NewOrm().QueryTable(GetTableSearchLog()).Limit(listRows).Offset((p - 1) * listRows).OrderBy("-Id").All(&rows) |
| 25 | return |
| 26 | } |
nothing calls this directly
no test coverage detected