using LearningOfficer.OA.Common.Enums; using LearningOfficer.OA.Common.Request; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LearningOfficer.OA.Common.Dtos.Admin { public class AdminAddDto { /// /// 备 注:账号 /// 默认值: /// public string Account { get; set; } = null!; /// /// 备 注:密码 /// 默认值: /// public string? Pwd { get; set; } /// /// 备 注:管理员名称 /// 默认值: /// public string Name { get; set; } = null!; /// /// 备 注:云校id /// public long CloudSchoolId { get; set; } /// /// 备 注:管理员角色 /// public SysRoleEnum RoleEnum { get; set; } } public class AdminUpdateDto : AdminAddDto { /// /// 备 注:管理员id /// 默认值: /// public long Id { get; set; } } /// /// 管理员修改密码Dto /// public class AdminUpdatePasswordDto { public long Id { get; set; } public string NewPassword { get; set; } } public class AdminSearchDto : PageRequest { /// /// 备 注:账号 /// 默认值: /// public string? Account { get; set; } /// /// 备 注:管理员名称 /// 默认值: /// public string? Name { get; set; } } public class AdminViewDto { public long Id { get; set; } /// /// 备 注:账号 /// 默认值: /// public string Account { get; set; } = null!; /// /// 备 注:管理员名称 /// 默认值: /// public string Name { get; set; } = null!; /// /// 角色 /// public SysRoleEnum RoleEnum { get; set; } public long CloudSchoolId { get; set; } public string CloudSchoolName { get; set; } } }