mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-28 22:08:08 +02:00
Change project to 3-Layer structure
This commit is contained in:
parent
2f900a5036
commit
2d67540e13
1365 changed files with 760 additions and 618 deletions
36
Application/Repositories/IMikrotikRepository.cs
Normal file
36
Application/Repositories/IMikrotikRepository.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using MTWireGuard.Application.Models;
|
||||
using MTWireGuard.Application.Models.Mikrotik;
|
||||
using MikrotikAPI.Models;
|
||||
|
||||
namespace MTWireGuard.Application.Repositories
|
||||
{
|
||||
public interface IMikrotikRepository : IDisposable
|
||||
{
|
||||
Task<List<LogViewModel>> GetLogsAsync();
|
||||
Task<List<WGServerViewModel>> GetServersAsync();
|
||||
Task<WGServerViewModel> GetServer(string Name);
|
||||
Task<List<ServerTrafficViewModel>> GetServersTraffic();
|
||||
Task<List<WGPeerViewModel>> GetUsersAsync();
|
||||
Task<WGPeerViewModel> GetUser(int id);
|
||||
Task<string> GetUserTunnelConfig(int id);
|
||||
Task<string> GetQRCodeBase64(int id);
|
||||
Task<MTInfoViewModel> GetInfo();
|
||||
Task<MTIdentityViewModel> GetName();
|
||||
Task<bool> TryConnectAsync();
|
||||
Task<List<ActiveUserViewModel>> GetActiveSessions();
|
||||
Task<List<JobViewModel>> GetJobs();
|
||||
Task<string> GetCurrentSessionID();
|
||||
Task<string> KillJob(string JobID);
|
||||
Task<CreationResult> CreateServer(ServerCreateModel server);
|
||||
Task<CreationResult> CreateUser(UserCreateModel peer);
|
||||
Task<CreationResult> SyncUser(UserSyncModel user);
|
||||
Task<CreationResult> UpdateUser(UserUpdateModel user);
|
||||
Task<CreationResult> UpdateServer(ServerUpdateModel server);
|
||||
Task<CreationResult> EnableServer(int id);
|
||||
Task<CreationResult> DisableServer(int id);
|
||||
Task<CreationResult> EnableUser(int id);
|
||||
Task<CreationResult> DisableUser(int id);
|
||||
Task<CreationResult> DeleteServer(int id);
|
||||
Task<CreationResult> DeleteUser(int id);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue