feat(03-01): create 7 core models and 3 service interfaces for Phase 3
- StorageNode, StorageScanOptions models - SearchResult, SearchOptions models - DuplicateItem, DuplicateGroup, DuplicateScanOptions models - IStorageService, ISearchService, IDuplicatesService interfaces
This commit is contained in:
13
SharepointToolbox/Services/IDuplicatesService.cs
Normal file
13
SharepointToolbox/Services/IDuplicatesService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
using SharepointToolbox.Core.Models;
|
||||
|
||||
namespace SharepointToolbox.Services;
|
||||
|
||||
public interface IDuplicatesService
|
||||
{
|
||||
Task<IReadOnlyList<DuplicateGroup>> ScanDuplicatesAsync(
|
||||
ClientContext ctx,
|
||||
DuplicateScanOptions options,
|
||||
IProgress<OperationProgress> progress,
|
||||
CancellationToken ct);
|
||||
}
|
||||
13
SharepointToolbox/Services/ISearchService.cs
Normal file
13
SharepointToolbox/Services/ISearchService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
using SharepointToolbox.Core.Models;
|
||||
|
||||
namespace SharepointToolbox.Services;
|
||||
|
||||
public interface ISearchService
|
||||
{
|
||||
Task<IReadOnlyList<SearchResult>> SearchFilesAsync(
|
||||
ClientContext ctx,
|
||||
SearchOptions options,
|
||||
IProgress<OperationProgress> progress,
|
||||
CancellationToken ct);
|
||||
}
|
||||
13
SharepointToolbox/Services/IStorageService.cs
Normal file
13
SharepointToolbox/Services/IStorageService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
using SharepointToolbox.Core.Models;
|
||||
|
||||
namespace SharepointToolbox.Services;
|
||||
|
||||
public interface IStorageService
|
||||
{
|
||||
Task<IReadOnlyList<StorageNode>> CollectStorageAsync(
|
||||
ClientContext ctx,
|
||||
StorageScanOptions options,
|
||||
IProgress<OperationProgress> progress,
|
||||
CancellationToken ct);
|
||||
}
|
||||
Reference in New Issue
Block a user