changes
This commit is contained in:
16
Repositories/ITreeRepository.cs
Normal file
16
Repositories/ITreeRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user