mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 10:43:13 +00:00
Enforce MIME/extension/magic-byte validation, auth and workOrderVersion concurrency, audit on category changes, and validate-before-store with blob compensate.
14 lines
634 B
C#
14 lines
634 B
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IWorkOrderMediaDataService
|
|
{
|
|
Task<WorkOrder?> GetTrackedWorkOrderAsync(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);
|
|
}
|
|
}
|