using System;
using System.Collections.Generic;
using Dpz.Core.Entity.Base.MapperConfig;
using Dpz.Core.Public.Entity;
namespace Dpz.Core.Public.ViewModel.Response;
/// <summary>
/// 用户信息变更记录
/// </summary>
public class UserHistoryResponse : IMapFrom<UserHistory>
{
public required string Id { get; set; }
/// <summary>
/// 账号
/// </summary>
public required string Account { get; set; }
/// <summary>
/// 变更时间
/// </summary>
public DateTime ChangeTime { get; set; }
public List<ChangeDetail> Changes
{
get;
set
{
value.ForEach(x =>
{
if (x.Field == nameof(User.Password))
{
x.NewValue = "******";
x.OldValue = "******";
}
});
field = value;
}
} = [];
}
评论加载中...