mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 14:49:31 +02:00
Update Models
This commit is contained in:
parent
0dad0d1a04
commit
c36204dbb9
27 changed files with 509 additions and 5 deletions
23
Application/Models/Requests/SyncUserRequest.cs
Normal file
23
Application/Models/Requests/SyncUserRequest.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MTWireGuard.Application.Models.Requests
|
||||
{
|
||||
public class SyncUserRequest
|
||||
{
|
||||
[FromRoute(Name = "id"), Required]
|
||||
public int ID { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Username is required.")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Password is required.")]
|
||||
public string Password { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "PrivateKey is required.")]
|
||||
public string PrivateKey { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "PublicKey is required.")]
|
||||
public string PublicKey { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue