using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 用户输出参数
///
public class SysUserOutput
{
///
/// 主键
///
[Required]
public int Id { get; set; }
///
/// 名称
///
[Required]
public string Name { get; set; }
///
/// 机构ID
///
[Required]
public short SysOrgId { get; set; }
///
/// 头像地址
///
public string Avatar { get; set; }
///
/// 手机
///
public string Mobile { get; set; }
///
/// 电子邮箱
///
public string Email { get; set; }
///
/// 工号
///
public string JobNumber { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 账号
///
public string Account { get; set; }
///
/// 最后登录IP
///
public string LastLoginIp { get; set; }
///
/// 最后登录时间
///
public DateTime? LastLoginTime { get; set; }
///
/// 用户自定义配置
///
public string Config { get; set; }
///
/// 是否已激活
///
[Required]
public bool IsActivated { get; set; }
///
/// 激活时间
///
public DateTime? ActivateTime { get; set; }
///
/// 状态
///
public virtual CommonStatus Status { get; set; }
///
/// 多对多(角色)
///
public List SysRoles { get; set; }
///
/// 一对一引用(机构)
///
public SysOrg SysOrg { get; set; }
}
///
/// 最小用户输出信息
///
public class SysUserLiteOutput
{
///
/// 用户ID
///
public int Id { get; set; }
///
/// 名称
///
public string Name { get; set; }
}