add: implementacao inicial

This commit is contained in:
2025-08-25 00:06:43 -03:00
parent 2378741455
commit cf9f2a1179
9 changed files with 203 additions and 28 deletions

View File

@@ -0,0 +1,12 @@
using CampusWorkshops.Api.Models;
namespace CampusWorkshops.Api.Repositories;
// Define repository contract; implementations should be provided by students during the workshop.
public interface IWorkshopRepository
{
Task<IReadOnlyList<Workshop>> GetAllAsync(DateTimeOffset? from, DateTimeOffset? to, string? q, CancellationToken ct);
Task<Workshop?> GetByIdAsync(Guid id, CancellationToken ct);
Task<Workshop> AddAsync(Workshop workshop, CancellationToken ct);
}