first commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
namespace F9WebAiTest.Application.Dtos.Auth;
|
||||
|
||||
public class LoginDto
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
|
||||
public class LoginResultDto
|
||||
{
|
||||
public string AccessToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public DateTime AccessTokenExpiresAt { get; set; }
|
||||
public EmployeeInfoDto User { get; set; }
|
||||
}
|
||||
|
||||
public class RefreshTokenDto
|
||||
{
|
||||
public string RefreshToken { get; set; }
|
||||
}
|
||||
|
||||
public class EmployeeInfoDto
|
||||
{
|
||||
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 Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
public long DepartmentId { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
public int Status { get; set; }
|
||||
public List<string> Roles { get; set; } = new();
|
||||
public List<string> Permissions { get; set; } = new();
|
||||
}
|
||||
|
||||
public class ChangePasswordDto
|
||||
{
|
||||
public string OldPassword { get; set; }
|
||||
public string NewPassword { get; set; }
|
||||
}
|
||||
|
||||
public class UpdateProfileDto
|
||||
{
|
||||
public string Nickname { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user