IEditorImageService.cs 577 B

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