mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
24 lines
681 B
C#
24 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; }
|
|||
|
}
|
|||
|
}
|