fix(architecture): corrections of architecture

This commit is contained in:
Emmanuel Rojas committed 2026-09-04 12:45:22 -05:00
1 parent 8e6d35ea0a
commit 9d5bb55335
7 files changed
+8 -4

No files matched your search

@@ -0,0 +1,10 @@
namespace RT.Application.Services;
public interface IService<TCreate, TUpdate, TResponse>
{
Task<IEnumerable<TResponse>> GetAllAsync(CancellationToken ct = default);
Task<TResponse?> GetByIdAsync(Guid id, CancellationToken ct = default);
Task<TResponse> CreateAsync(TCreate dto, CancellationToken ct = default);
Task<TResponse> UpdateAsync(Guid id, TUpdate dto, CancellationToken ct = default);
Task DeleteAsync(Guid id, CancellationToken ct = default);
}