feat(ui): INotesApi wrapper for daily notes

This commit is contained in:
mika kuns
2026-06-03 09:59:40 +02:00
parent b748c1569e
commit 9bf44da13b
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using ClaudeDo.Ui.Services.Interfaces;
namespace ClaudeDo.Ui.Services;
public sealed class WorkerNotesApi : INotesApi
{
private readonly WorkerClient _client;
public WorkerNotesApi(WorkerClient client) => _client = client;
public Task<List<DailyNoteDto>> ListAsync(DateOnly day) => _client.GetDailyNotesAsync(day);
public Task<DailyNoteDto?> AddAsync(DateOnly day, string text) => _client.AddDailyNoteAsync(day, text);
public Task UpdateAsync(string id, string text) => _client.UpdateDailyNoteAsync(id, text);
public Task DeleteAsync(string id) => _client.DeleteDailyNoteAsync(id);
}