feat(ui): INotesApi wrapper for daily notes
This commit is contained in:
13
src/ClaudeDo.Ui/Services/WorkerNotesApi.cs
Normal file
13
src/ClaudeDo.Ui/Services/WorkerNotesApi.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user