mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add endpoint to access and modify user information.
This commit is contained in:
25
Marechai.Data/Models/UpdateUserRequest.cs
Normal file
25
Marechai.Data/Models/UpdateUserRequest.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Marechai.Data.Models;
|
||||
|
||||
public sealed record UpdateUserRequest
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("userName")]
|
||||
public string UserName { get; set; } = null!;
|
||||
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
[JsonPropertyName("email")]
|
||||
public string Email { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("phoneNumber")]
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("emailConfirmed")]
|
||||
public bool? EmailConfirmed { get; set; }
|
||||
|
||||
[JsonPropertyName("lockoutEnabled")]
|
||||
public bool? LockoutEnabled { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user