UIStandardWebApi/UIStandardWebApi.EntityDto/User/SysUserInfo.cs

51 lines
1.2 KiB
C#
Raw Normal View History

2025-04-09 00:49:57 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIStandardWebApi.Entity.EnumEntity;
using UIStandardWebApi.EntityDto.ValidateRules;
namespace UIStandardWebApi.EntityDto.User
{
/// <summary>
/// 用户信息
/// </summary>
public class SysUserInfo
{
public int UserId { set; get; }
public string? Name { set; get; }
public string? Password { set; get; }
/// <summary>
/// 用户类型--UserTypeEnum
/// 1:管理员 系统默认生成
/// 2:普通用户 添加的或者注册的用户都为普通用户
/// </summary>
public int UserType { get; set; } = (int)UserTypeEnum.GeneralUser;
public int Status { set; get; }
public string? Phone { set; get; }
[MobileNum("手机号不符合格式")]
public string? Mobile { set; get; }
public string? Address { set; get; }
public string? Email { set; get; }
public string QQ { set; get; }
public string? WeChat { set; get; }
public int Sex { set; get; }
public string? Imageurl { set; get; }
}
}