using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HxModel
{
///
/// 用户表
///
[Table("t_userinfo")]
public class UserInfoModel
{
///
/// 主键ID
///
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)] // 不自增字段
public string Id { get; set; }
///
/// 状态(0:禁用,1:启用)
///
public string Status { get; set; }
///
/// 用户名
///
public string UserName { get; set; }
///
/// 密码
///
public string UserPwd { get; set; }
///
/// 真实姓名
///
public string TrueName { get; set; }
///
/// 登录状态
///
public string Loginstate { get; set; }
///
/// 登录时间
///
public string LoginTime { get; set; }
///
/// 权限
///
public string Authority { get; set; }
[NotMapped]
public string AuthorityName { get; set; }
///
/// 部门
///
public string Department { get; set; }
///
/// 电话
///
public string Phone { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
///
///
public string PcMac { get; set; }
///
/// IP
///
public string PcIp { get; set; }
///
///
///
public string Authorize { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 登录出错次数
///
public int LoginErrorNum { get; set; }
///
/// 登录锁定时间
///
public DateTime? LockTime { get; set; }
///
/// 创建者
///
public string CreateName { get; set; }
///
/// 创建时间
///
public string CreateTime { get; set; }
///
/// 修改者
///
public string ModifyName { get; set; }
///
/// 修改时间
///
public string ModifyTime { get; set; }
}
///
/// 禁用、启用 枚举
///
public enum UserStatusEnum
{
///
/// 禁用
///
[Description("锁定")]
DisablEnum = 0,
///
/// 启用
///
[Description("正常")]
EnableEnum = 1
}
///
/// 权限(超管0、管理员1、普通用户2、游客3) 枚举
///
public enum AuthorityEnum
{
///
/// 超管
///
[Description("超管")]
SuperAdminEnum = 0,
///
/// 管理员
///
[Description("管理员")]
AdminEnum = 1,
///
/// 普通用户
///
[Description("普通用户")]
OrdinaryEnum = 2,
///
/// 游客
///
[Description("游客")]
TouristEnum = 3
}
///
/// 查询参数
///
public class UserInfoSearchModel
{
///
/// 主键ID
///
public string Id { get; set; }
///
/// 状态(0:禁用,1:启用)
///
public string Status { get; set; }
///
/// 用户名
///
public string UserName { get; set; }
///
/// 密码
///
public string UserPwd { get; set; }
///
/// 真实姓名
///
public string TrueName { get; set; }
///
/// 登录时间
///
public string LoginTime { get; set; }
///
/// 权限(超管0、管理员1、普通用户2、游客3)
///
public string Authority { get; set; }
///
/// 部门
///
public string Department { get; set; }
///
/// 电话
///
public string Phone { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
/// 创建时间
///
public string CreateTime { get; set; }
}
}