2017-04-03 15:56:17 +08:00
|
|
|
|
using Bootstrap.Security;
|
|
|
|
|
using System;
|
2016-11-06 16:01:14 +08:00
|
|
|
|
|
|
|
|
|
namespace Bootstrap.DataAccess
|
2016-10-22 16:58:31 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户表实体类
|
|
|
|
|
/// </summary>
|
2017-04-03 15:56:17 +08:00
|
|
|
|
public class User : BootstrapUser
|
2016-10-22 16:58:31 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 用户主键ID
|
|
|
|
|
/// </summary>
|
2017-03-30 16:15:45 +08:00
|
|
|
|
public int Id { get; set; }
|
2016-10-22 16:58:31 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取/设置 密码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
/// <summary>
|
2016-10-24 19:59:07 +08:00
|
|
|
|
/// 获取/设置 密码盐
|
2016-10-22 16:58:31 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string PassSalt { get; set; }
|
2016-10-24 01:01:29 +08:00
|
|
|
|
/// <summary>
|
2016-10-28 20:18:12 +08:00
|
|
|
|
/// 获取/设置 角色用户关联状态 checked 标示已经关联 '' 标示未关联
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Checked { get; set; }
|
2016-11-06 16:01:14 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 用户注册时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime RegisterTime { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 用户被批复时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime ApprovedTime { get; set; }
|
2016-11-10 10:14:27 +08:00
|
|
|
|
/// <summary>
|
2016-11-11 14:47:54 +08:00
|
|
|
|
/// 获得/设置 用户批复人
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ApprovedBy { get; set; }
|
|
|
|
|
/// <summary>
|
2016-11-10 10:14:27 +08:00
|
|
|
|
/// 获得/设置 用户的申请理由
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Description { get; set; }
|
2016-11-11 14:32:52 +08:00
|
|
|
|
/// <summary>
|
2018-09-07 15:53:16 +08:00
|
|
|
|
/// 获得/设置 用户当前状态 0 表示管理员注册用户 1 表示用户注册 2 表示更改密码 3 表示更改个人皮肤 4 表示更改显示名称 5 批复新用户注册操作
|
2016-11-11 14:32:52 +08:00
|
|
|
|
/// </summary>
|
2018-09-07 15:53:16 +08:00
|
|
|
|
public UserStates UserStatus { get; set; }
|
2016-11-11 18:02:27 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 通知描述 2分钟内为刚刚
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Period { get; set; }
|
2016-11-12 15:26:40 +08:00
|
|
|
|
/// <summary>
|
2016-11-16 20:06:28 +08:00
|
|
|
|
/// 获得/设置 新密码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string NewPassword { get; set; }
|
2017-01-03 19:47:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return string.Format("{0} ({1})", UserName, DisplayName);
|
|
|
|
|
}
|
2016-10-22 16:58:31 +08:00
|
|
|
|
}
|
2018-09-07 15:53:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum UserStates
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
ChangePassword,
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
ChangeTheme,
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
ChangeDisplayName,
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
ApproveUser,
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
RejectUser
|
|
|
|
|
}
|
2016-10-22 16:58:31 +08:00
|
|
|
|
}
|