26 lines
575 B
C#

using LMS.Repository.User;
namespace LMS.Repository.DTO.UserDto;
public class UserBaseDto
{
public long Id { get; set; }
public string NickName { get; set; } = string.Empty;
public string UserName { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string PhoneNumber { get; set; } = string.Empty;
public string Avatar { get; set; } = string.Empty;
// 添加隐藏联系信息的方法
public void HideContactInfo()
{
Email = "**********";
PhoneNumber = "***********";
}
}