mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
Update Models
This commit is contained in:
parent
0dad0d1a04
commit
c36204dbb9
27 changed files with 509 additions and 5 deletions
27
Application/Models/Requests/UpdateClientRequest.cs
Normal file
27
Application/Models/Requests/UpdateClientRequest.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace MTWireGuard.Application.Models.Requests
|
||||
{
|
||||
public class UpdateClientRequest
|
||||
{
|
||||
[FromRoute(Name = "id"), Required]
|
||||
public int ID { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Endpoint { get; set; }
|
||||
public ushort? EndpointPort { get; set; }
|
||||
public string? AllowedAddress { get; set; }
|
||||
public string? PresharedKey { get; set; }
|
||||
public string? PrivateKey { get; set; }
|
||||
public string? PublicKey { get; set; }
|
||||
public string Interface { get; set; }
|
||||
public int? KeepAlive { get; set; }
|
||||
public string? Expire { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public int? Traffic { get; set; }
|
||||
public bool InheritIP { get; set; }
|
||||
public bool InheritDNS { get; set; }
|
||||
public string? DNSAddress { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue