IEditorImageService.cs 539 B

12345678910111213
  1. namespace SharedKernel.Storage;
  2. public interface IEditorImageService
  3. {
  4. /// data:image 를 파일로 저장하고 src를 /editors/... URL로 치환 + 미사용 파일 정리
  5. Task<string?> UploadAsync(string? html, FileStoragePath path, CancellationToken ct = default);
  6. /// 콘텐츠 내 로컬 이미지(/editors, /uploads)만 삭제
  7. Task CleanupByContentAsync(string? html, CancellationToken ct = default);
  8. /// 특정 경로 폴더 통째 정리(해당 Editor Root)
  9. void CleanupFolder(FileStoragePath path);
  10. }