using JNPF.DependencyInjection;
using System.ComponentModel.DataAnnotations;
namespace JNPF.OAuth.Dto;
///
/// 登录输入参数.
///
[SuppressSniffer]
public class LoginInput
{
///
/// 用户名.
///
/// admin
[Required(ErrorMessage = "用户名不能为空")]
public string? account { get; set; }
///
/// 密码.
///
/// f5252ff163e76623601a9a84d275c842
[Required(ErrorMessage = "密码不能为空")]
public string? password { get; set; }
///
/// 验证码.
///
public string? code { get; set; }
///
/// 验证码时间戳.
///
public string? timestamp { get; set; }
///
/// 判断是否需要验证码.
///
/// password
public string? origin { get; set; }
///
/// 租户库信息 第三方登录回调.
///
public SqlSugar.ConnectionConfigOptions? socialsOptions { get; set; }
///
/// 是否第三方登录回调.
///
public bool isSocialsLoginCallBack { get; set; } = false;
///
/// 未绑定 成功登录后 自动绑定 缓存 Key.
///
public string jnpf_ticket { get; set; }
///
/// 单点登录票据.
///
public string online_ticket { get; set; }
///
/// 登录类型用于区分Pc Pda
///
public string login_type { get; set; }
}