Function
recordFileBrowseHistoryAsync
(eid, userID int64, file *model.File)
Source from the content-addressed store, hash-verified
| 535 | } |
| 536 | |
| 537 | func 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 获取文件列表 |
Tested by
no test coverage detected