17 lines
864 B
C#
17 lines
864 B
C#
using AuthorBuddy.Web.Models;
|
|
|
|
namespace AuthorBuddy.Web.Services;
|
|
|
|
public interface IProjectService
|
|
{
|
|
Task<int> CreateNewProjectAsync(string projectName, string rootPath, int userId, ProjectTemplate template = ProjectTemplate.Novel);
|
|
Task<List<Project>> GetAllProjectsAsync(int? userId = null);
|
|
Task<Project?> GetProjectAsync(int projectId);
|
|
Task<List<FileTreeItem>> GetProjectFileTreeAsync(int projectId);
|
|
Task SyncProjectFilesAsync(int projectId, string directoryPath, IProgress<string> progress);
|
|
Task<int> CopyProjectAsync(int sourceProjectId, string newName, string newRootPath, int userId);
|
|
|
|
Task<Dictionary<string, FileCategory>> GetFileCategoriesAsync(int projectId);
|
|
Task<bool> SetFileCategoryAsync(int projectId, string filePath, FileCategory category);
|
|
Task ClearFileCategoryAsync(int projectId, string filePath);
|
|
}
|