- Move standalone fragment storage from unencrypted SQLite to the existing encrypted SQLCipher database (journal_cache.db) - Add IDatabaseSessionService/DatabaseSessionService for shared encrypted connection management after authentication - Update fragments table schema: nullable entry_id, add guid column - Reorganize flat Services/ directory (28 files) into 9 domain modules: Ai, Config, Database, Entries, Fragments, Logging, Sidecar, Speech, Vault - Update all namespace declarations and using statements across all projects - Update REFACTORING_SUMMARY.md with all changes Co-Authored-By: Warp <agent@warp.dev>
16 lines
580 B
C#
16 lines
580 B
C#
using Journal.Core.Dtos;
|
|
|
|
namespace Journal.Core.Services.Fragments;
|
|
|
|
public interface IFragmentService
|
|
{
|
|
Task<FragmentDto> CreateAsync(CreateFragmentDto dto);
|
|
Task<bool> UpdateAsync(Guid id, UpdateFragmentDto dto);
|
|
Task<bool> RemoveAsync(Guid id);
|
|
Task<List<FragmentDto>> SearchAsync(string? type = null, string? tag = null, DateTimeOffset? timeAfter = null);
|
|
Task<List<FragmentDto>> GetByTagAsync(string tag);
|
|
Task<List<FragmentDto>> GetByTypeAsync(string type);
|
|
Task<List<FragmentDto>> GetAllAsync();
|
|
Task<FragmentDto?> GetByIdAsync(Guid id);
|
|
}
|