MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / SearchUserLogs

Function SearchUserLogs

model/log.go:333–337  ·  view source on GitHub ↗
(userId int, keyword string)

Source from the content-addressed store, hash-verified

331}
332
333func SearchUserLogs(userId int, keyword string) (logs []*Log, err error) {
334 err = LOG_DB.Where("user_id = ? and type = ?", userId, keyword).Order("id desc").Limit(common.MaxRecentItems).Find(&logs).Error
335 formatUserLogs(logs)
336 return logs, err
337}
338
339type Stat struct {
340 Quota int `json:"quota"`

Callers 1

SearchUserLogsFunction · 0.92

Calls 1

formatUserLogsFunction · 0.85

Tested by

no test coverage detected