HaniBlindBox/server/HoneyBox/src/HoneyBox.Model/Models/Auth/LoginResult.cs
2026-01-25 19:10:31 +08:00

33 lines
657 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace HoneyBox.Model.Models.Auth;
/// <summary>
/// 登录结果DTO
/// </summary>
public class LoginResult
{
/// <summary>
/// 是否成功
/// </summary>
public bool Success { get; set; }
/// <summary>
/// JWT Token兼容旧版
/// </summary>
public string? Token { get; set; }
/// <summary>
/// 用户ID
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 错误信息
/// </summary>
public string? ErrorMessage { get; set; }
/// <summary>
/// 登录响应(双 Token 认证)
/// </summary>
public LoginResponse? LoginResponse { get; set; }
}