MCPcopy Create free account
hub / github.com/TruthHun/DocHub / List

Method List

models/SearchLogModel.go:23–26  ·  view source on GitHub ↗

获取最新的搜索关键字。这里的查询error可以忽略 @param p 页面 @param listRows 每页显示记录 @return rows 查询到的记录

(p, listRows int)

Source from the content-addressed store, hash-verified

21//@param listRows 每页显示记录
22//@return rows 查询到的记录
23func (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}

Callers

nothing calls this directly

Calls 2

GetTableSearchLogFunction · 0.85
AllMethod · 0.80

Tested by

no test coverage detected