You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.8 KiB
89 lines
1.8 KiB
namespace Admin.NET.Core.Service;
|
|
|
|
public class UserInput : BaseIdInput
|
|
{
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public StatusEnum Status { get; set; }
|
|
}
|
|
|
|
public class PageUserInput : BasePageInput
|
|
{
|
|
/// <summary>
|
|
/// 账号
|
|
/// </summary>
|
|
public string Account { get; set; }
|
|
|
|
/// <summary>
|
|
/// 姓名
|
|
/// </summary>
|
|
public string RealName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 手机号
|
|
/// </summary>
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// 查询时所选机构Id
|
|
/// </summary>
|
|
public long OrgId { get; set; }
|
|
}
|
|
|
|
public class AddUserInput : SysUser
|
|
{
|
|
/// <summary>
|
|
/// 账号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "账号不能为空")]
|
|
public override string Account { get; set; }
|
|
|
|
/// <summary>
|
|
/// 真实姓名
|
|
/// </summary>
|
|
[Required(ErrorMessage = "真实姓名不能为空")]
|
|
public override string RealName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 角色集合
|
|
/// </summary>
|
|
public List<long> RoleIdList { get; set; }
|
|
|
|
/// <summary>
|
|
/// 扩展机构集合
|
|
/// </summary>
|
|
public List<SysUserExtOrg> ExtOrgIdList { get; set; }
|
|
}
|
|
|
|
public class UpdateUserInput : AddUserInput
|
|
{
|
|
}
|
|
|
|
public class DeleteUserInput : BaseIdInput
|
|
{
|
|
/// <summary>
|
|
/// 机构Id
|
|
/// </summary>
|
|
public long OrgId { get; set; }
|
|
}
|
|
|
|
public class ResetPwdUserInput : BaseIdInput
|
|
{
|
|
}
|
|
|
|
public class ChangePwdInput
|
|
{
|
|
/// <summary>
|
|
/// 当前密码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "当前密码不能为空")]
|
|
public string PasswordOld { get; set; }
|
|
|
|
/// <summary>
|
|
/// 新密码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "新密码不能为空")]
|
|
[StringLength(20, MinimumLength = 5, ErrorMessage = "密码需要大于5个字符")]
|
|
public string PasswordNew { get; set; }
|
|
}
|