This commit is contained in:
2025-12-26 16:40:32 +03:00
commit 4f1be2c3db
37 changed files with 2222 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using public_valetax.Models;
using public_valetax.DTOs;
namespace public_valetax.Repositories
{
public interface ITreeRepository
{
Task<Tree?> GetTreeByNameAsync(string name);
Task<Tree> CreateTreeAsync(string name);
Task<Node?> GetNodeByIdAsync(long nodeId);
Task<Node> CreateNodeAsync(long treeId, long? parentId, string name);
Task DeleteNodeAsync(long nodeId);
Task RenameNodeAsync(long nodeId, string newName);
Task<MNode?> GetTreeStructureAsync(string treeName);
}
}