namespace ClassNotify.Shared.Models;
///
/// 教师登录请求 DTO
///
public class TeacherLoginDto
{
public string Username { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
///
/// 教师登录成功返回包含 Tenant Claims 的 JWT 凭证
///
public class TeacherLoginResultDto
{
public bool Success { get; set; }
public string? Token { get; set; }
public string? TenantId { get; set; }
public string? TenantType { get; set; } // "School" or "Personal"
public string? TenantName { get; set; }
public string? UserId { get; set; }
public string? FullName { get; set; }
public string? Role { get; set; }
public string? Username { get; set; }
public string? ErrorMessage { get; set; }
// Turn 62: Personal Teacher Trial & Recovery Fields
public string? TrialActivationCodeMasked { get; set; }
public string? TrialActivationCodeId { get; set; }
public string? RecoveryKey { get; set; } // Returned ONLY upon successful registration
public bool IsFirstRegistration { get; set; } = false;
// Turn 75: Temporary Password Forced Change Model
public bool PasswordChangeRequired { get; set; } = false;
public string? PasswordChangeToken { get; set; }
}