MCPcopy Create free account
hub / github.com/53AI/53AIHub / recordFileBrowseHistoryAsync

Function recordFileBrowseHistoryAsync

api/controller/file.go:537–544  ·  view source on GitHub ↗
(eid, userID int64, file *model.File)

Source from the content-addressed store, hash-verified

535}
536
537func recordFileBrowseHistoryAsync(eid, userID int64, file *model.File) {
538 if file == nil || file.Type != model.FILE_TYPE_FILE {
539 return
540 }
541 go func(fileID, libraryID int64) {
542 _ = model.RecordBrowseHistory(eid, userID, libraryID, fileID)
543 }(file.ID, file.LibraryID)
544}
545
546// GetFileList godoc
547// @Summary 获取文件列表

Callers 1

GetFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected