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; } /// /// 管理员输出 /// 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; } } /// /// 管理员分页查询输入 /// public class AdminUserQueryInput : PageQueryModel { /// /// 用户名(模糊查询) /// public string? UserName { get; set; } /// /// 管理员类型 /// public string? Type { get; set; } /// /// 状态 /// public int? Status { get; set; } }