22 lines
558 B
C#
22 lines
558 B
C#
using IM_API.Models;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IM_API.Dtos
|
|
{
|
|
public record PasswordResetDto
|
|
{
|
|
[Required(ErrorMessage = "旧密码不能为空")]
|
|
public string OldPassword { get; init; }
|
|
|
|
[Required(ErrorMessage = "新密码不能为空")]
|
|
[MaxLength(50, ErrorMessage = "密码不能超过50个字符")]
|
|
public string Password { get; init; }
|
|
}
|
|
|
|
public record OnlineStatusSetDto
|
|
{
|
|
[Required]
|
|
public UserOnlineStatus OnlineStatus { get; init; }
|
|
}
|
|
}
|