mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 17:43:12 +00:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IWorkOrderMediaDataService
|
|
{
|
|
/// <summary>AsNoTracking base (+ optional account) scoped load for pre-mutation auth.</summary>
|
|
Task<WorkOrder?> GetWorkOrderForMediaAuthAsync(
|
|
int workOrderId,
|
|
int? accountId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrder?> GetTrackedWorkOrderAsync(
|
|
int workOrderId,
|
|
int? accountId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrderAttachments?> GetAttachmentForReadAsync(
|
|
int mediaId,
|
|
int workOrderId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrderAttachments?> GetTrackedAttachmentAsync(int mediaId, int workOrderId, CancellationToken cancellationToken);
|
|
void TrackAttachment(WorkOrderAttachments attachment);
|
|
void SetExpectedWorkOrderVersion(WorkOrder workOrder, byte[] version);
|
|
void MarkWorkOrderModified(WorkOrder workOrder);
|
|
Task SaveAsync(CancellationToken cancellationToken);
|
|
}
|
|
}
|