mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 06:39:27 +02:00
Update Models
This commit is contained in:
parent
0dad0d1a04
commit
c36204dbb9
27 changed files with 509 additions and 5 deletions
|
@ -1,5 +1,14 @@
|
|||
namespace MTWireGuard.Application.Models.Mikrotik
|
||||
{
|
||||
public class WGServerDBModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? DNSAddress { get; set; }
|
||||
public bool InheritDNS { get; set; }
|
||||
public bool UseIPPool { get; set; }
|
||||
public int? IPPoolId { get; set; }
|
||||
}
|
||||
|
||||
public class WGServerViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
@ -10,6 +19,11 @@
|
|||
public string PrivateKey { get; set; }
|
||||
public string PublicKey { get; set; }
|
||||
public bool Running { get; set; }
|
||||
public string IPAddress { get; set; }
|
||||
public string DNSAddress { get; set; }
|
||||
public bool InheritDNS { get; set; }
|
||||
public bool UseIPPool { get; set; }
|
||||
public string IPPool { get; set; }
|
||||
}
|
||||
|
||||
public class ServerCreateModel
|
||||
|
@ -19,14 +33,24 @@
|
|||
public string ListenPort { get; set; }
|
||||
public string MTU { get; set; }
|
||||
public string PrivateKey { get; set; }
|
||||
public string IPAddress { get; set; }
|
||||
public bool UseIPPool { get; set; }
|
||||
public int IPPoolId { get; set; }
|
||||
public bool InheritDNS { get; set; }
|
||||
public string DNSAddress { get; set; }
|
||||
}
|
||||
|
||||
public class ServerUpdateModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public ushort ListenPort { get; set; }
|
||||
public ushort MTU { get; set; }
|
||||
public string PrivateKey { get; set; }
|
||||
public ushort? ListenPort { get; set; }
|
||||
public ushort? MTU { get; set; }
|
||||
public string? PrivateKey { get; set; }
|
||||
public string? IPAddress { get; set; }
|
||||
public bool UseIPPool { get; set; }
|
||||
public int? IPPoolId { get; set; }
|
||||
public bool InheritDNS { get; set; }
|
||||
public string? DNSAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue