32 lines
861 B
C#
32 lines
861 B
C#
namespace License.Api.DTOs;
|
|
|
|
public class AdminLoginRequest
|
|
{
|
|
public string Username { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public string? Captcha { get; set; }
|
|
}
|
|
|
|
public class ChangePasswordRequest
|
|
{
|
|
public string OldPassword { get; set; } = string.Empty;
|
|
public string NewPassword { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class AdminCreateRequest
|
|
{
|
|
public string Username { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public string? Email { get; set; }
|
|
public string Role { get; set; } = "admin";
|
|
public string? Permissions { get; set; }
|
|
}
|
|
|
|
public class AdminUpdateRequest
|
|
{
|
|
public string? Email { get; set; }
|
|
public string? Role { get; set; }
|
|
public string? Permissions { get; set; }
|
|
public string? Status { get; set; }
|
|
}
|