using QYZH.InteractiveMagazine.Models.Dto; using QYZH.InteractiveMagazine.Models.Enum; namespace QYZH.InteractiveMagazine.Models.Dto; /// /// 管理员创建/更新输入 /// public class AdminUserInput { /// /// 用户名 /// public string UserName { get; set; } = string.Empty; /// /// 密码(创建时必填,更新时为空表示不修改密码) /// public string? Password { get; set; } /// /// 管理员类型: SuperAdmin, Editor /// public AdminUserTypeEnum Type { get; set; } = AdminUserTypeEnum.Editor; /// /// 状态: Active, Inactive /// public int Status { get; set; } = 1; /// /// 角色ID集合,更新时为null表示不调整角色 /// public List? RoleIds { get; set; } } /// /// 管理员输出 /// public class AdminUserOutput { /// /// 主键ID /// public long Id { get; set; } /// /// 用户名 /// public string UserName { get; set; } = string.Empty; /// /// 管理员类型 /// public string Type { get; set; } = string.Empty; /// /// 状态 /// public int Status { get; set; } /// /// 创建人 /// public string? CreatedBy { get; set; } /// /// 创建时间 /// public DateTime CreatedAt { get; set; } /// /// 更新人 /// public string? UpdatedBy { get; set; } /// /// 更新时间 /// public DateTime? UpdatedAt { get; set; } /// /// 角色ID集合 /// public List RoleIds { get; set; } = []; /// /// 角色集合 /// public List Roles { get; set; } = []; } /// /// 管理员分页查询输入 /// public class AdminUserQueryInput : PageQueryModel { /// /// 用户名(模糊查询) /// public string? UserName { get; set; } /// /// 管理员类型 /// public string? Type { get; set; } /// /// 状态 /// public int? Status { get; set; } }