Files
2026-10-08 10:43:59 +08:00

62 lines
1.9 KiB
C#

namespace F9WebAiTest.Application.Dtos;
public class EmployeeDto
{
public long Id { get; set; }
public string Username { get; set; }
public string RealName { get; set; }
public string Nickname { get; set; }
public string Avatar { get; set; }
public string Gender { get; set; }
public string Phone { get; set; }
public string Email { get; set; }
public long DepartmentId { get; set; }
public string DepartmentName { get; set; }
public int Status { get; set; }
public string Remark { get; set; }
public List<long> RoleIds { get; set; } = new();
public List<string> RoleNames { get; set; } = new();
public DateTime CreatedAt { get; set; }
}
public class CreateEmployeeDto
{
public string Username { get; set; }
public string Password { get; set; }
public string RealName { get; set; }
public string Nickname { get; set; } = "";
public string Gender { get; set; } = "男";
public string Phone { get; set; } = "";
public string Email { get; set; } = "";
public long DepartmentId { get; set; }
public string Remark { get; set; } = "";
public List<long> RoleIds { get; set; } = new();
}
public class UpdateEmployeeDto
{
public string RealName { get; set; }
public string Nickname { get; set; } = "";
public string Gender { get; set; } = "男";
public string Phone { get; set; } = "";
public string Email { get; set; } = "";
public long DepartmentId { get; set; }
public int Status { get; set; } = 1;
public string Remark { get; set; } = "";
public List<long> RoleIds { get; set; } = new();
}
public class ResetPasswordDto
{
public string NewPassword { get; set; }
}
public class EmployeeQueryDto
{
public string Keyword { get; set; } = "";
public long? DepartmentId { get; set; }
public int? Status { get; set; }
public int PageIndex { get; set; } = 1;
public int PageSize { get; set; } = 10;
}