(userId int, keyword string)
| 331 | } |
| 332 | |
| 333 | func 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 | |
| 339 | type Stat struct { |
| 340 | Quota int `json:"quota"` |
no test coverage detected