using Journal.Core.Dtos; namespace Journal.Core.Services; public interface IFragmentService { Task CreateAsync(CreateFragmentDto dto); Task UpdateAsync(Guid id, UpdateFragmentDto dto); Task RemoveAsync(Guid id); Task> SearchAsync(string? type = null, string? tag = null, DateTimeOffset? timeAfter = null); Task> GetByTagAsync(string tag); Task> GetByTypeAsync(string type); Task> GetAllAsync(); Task GetByIdAsync(Guid id); }