- Delete unused FileFragmentRepository.cs - DatabaseSessionService delegates to JournalDatabaseService for OpenEncryptedConnection/EnsureSchema instead of duplicating logic - Make IJournalDatabaseService expose OpenEncryptedConnection and EnsureSchema as public - Convert entire fragment chain from fake async (Task.FromResult wrappers) to synchronous: IFragmentRepository, SqliteFragmentRepository, InMemoryFragmentRepository, IFragmentService, FragmentService, Entry.cs dispatch, and SmokeTests Co-Authored-By: Warp <agent@warp.dev>
16 lines
492 B
C#
16 lines
492 B
C#
using Journal.Core.Dtos;
|
|
|
|
namespace Journal.Core.Services.Fragments;
|
|
|
|
public interface IFragmentService
|
|
{
|
|
FragmentDto Create(CreateFragmentDto dto);
|
|
bool Update(Guid id, UpdateFragmentDto dto);
|
|
bool Remove(Guid id);
|
|
List<FragmentDto> Search(string? type = null, string? tag = null, DateTimeOffset? timeAfter = null);
|
|
List<FragmentDto> GetByTag(string tag);
|
|
List<FragmentDto> GetByType(string type);
|
|
List<FragmentDto> GetAll();
|
|
FragmentDto? GetById(Guid id);
|
|
}
|