techgarage-ir.MTWireGuard/Application/Models/Requests/SyncUserRequest.cs
2024-01-25 20:36:44 +03:30

23 lines
681 B
C#

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; }
}
}