From e088374b1450c7ba27e1306fae734d7127d5490b Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 1 Jun 2024 07:31:14 +0300 Subject: [PATCH] feat: add request for create user --- ApiDto/Requests/CreateUserRequest.cs | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ApiDto/Requests/CreateUserRequest.cs diff --git a/ApiDto/Requests/CreateUserRequest.cs b/ApiDto/Requests/CreateUserRequest.cs new file mode 100644 index 0000000..3bcf70c --- /dev/null +++ b/ApiDto/Requests/CreateUserRequest.cs @@ -0,0 +1,36 @@ +using System.ComponentModel.DataAnnotations; + +namespace Mirea.Api.Dto.Requests; + +/// +/// Request model for creating a user. +/// +public class CreateUserRequest +{ + /// + /// Gets or sets the email address of the user. + /// + /// + /// The email address is a required field. + /// + [Required] + public required string Email { get; set; } + + /// + /// Gets or sets the username of the user. + /// + /// + /// The username is a required field. + /// + [Required] + public required string Username { get; set; } + + /// + /// Gets or sets the password of the user. + /// + /// + /// The password is a required field. + /// + [Required] + public required string Password { get; set; } +}