mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 14:13:12 +00:00
Close the remaining SH-221 bypass: board/legacy comments and completion-doc now enforce server-derived account scope, authorize before blob storage, and cover cross-account regressions.
21 lines
719 B
C#
21 lines
719 B
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IWorkOrderCompletionDataService
|
|
{
|
|
Task<WorkOrder?> GetWorkOrderForCompletionAuthAsync(
|
|
int workOrderId,
|
|
int? accountId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrder?> GetTrackedWorkOrderAsync(
|
|
int workOrderId,
|
|
int? accountId,
|
|
CancellationToken cancellationToken);
|
|
|
|
void SetExpectedWorkOrderVersion(WorkOrder workOrder, byte[] version);
|
|
Task<CompletionDocTemplate?> GetTrackedTemplateAsync(int id, CancellationToken cancellationToken);
|
|
Task SaveAsync(CancellationToken cancellationToken);
|
|
}
|
|
}
|