Add proposal workflow and voting API

This commit is contained in:
GonnaHetzMe committed 2026-11-18 21:58:33 +01:00
1 parent 9ca23a2c15
commit 1ff4a0a814
17 files changed
+796 -83

No files matched your search

@@ -1,8 +1,11 @@
using Helpdesk.Domain.Auth;
using Helpdesk.Domain.Catalogs;
using Helpdesk.Domain.Issues;
using Helpdesk.Domain.Notifications;
using Helpdesk.Domain.Proposals;
using Helpdesk.Domain.Users;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
namespace Helpdesk.Application.Abstractions;
@@ -16,11 +19,17 @@ public interface IAppDbContext
DbSet<Issue> Issues { get; }
DbSet<IssueEvent> IssueEvents { get; }
DbSet<Attachment> Attachments { get; }
DbSet<IssueNotification> IssueNotifications { get; }
DbSet<Proposal> Proposals { get; }
DbSet<ProposalEvent> ProposalEvents { get; }
DbSet<ProposalVote> ProposalVotes { get; }
DbSet<ProposalScore> ProposalScores { get; }
DbSet<Notification> Notifications { get; }
DbSet<NotificationDelivery> NotificationDeliveries { get; }
DbSet<PushDevice> PushDevices { get; }
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
Task<IDbContextTransaction> BeginProposalWriteAsync(CancellationToken ct);
Task<Proposal?> LockProposalAsync(int id, CancellationToken ct);
}
public interface IPasswordHasher