Initial commit
This commit is contained in:
31
license-system-backend/src/License.Api/DTOs/AdminDtos.cs
Normal file
31
license-system-backend/src/License.Api/DTOs/AdminDtos.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user