This commit is contained in:
2026-08-31 14:42:22 +08:00
72 changed files with 2479 additions and 168 deletions
@@ -35,5 +35,12 @@ namespace FileService.Infrastructure.Reposites
{
return await db.Files.FirstOrDefaultAsync(x => x.Id == id);
}
public async Task<UploadFile?> FindByCheckSumGlobalAsync(string algorithm, string value)
{
return await db.Files.FirstOrDefaultAsync(
x => x.CheckSum.Algorithm == algorithm &&
x.CheckSum.Value == value
);
}
}
}