2026-06-15 18:26:58 +06:00
|
|
|
|
using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.Integrations;
|
|
|
|
|
|
|
2026-06-16 15:18:22 +06:00
|
|
|
|
public class IntegrationLoginResponse : ResponseBase
|
2026-06-15 18:26:58 +06:00
|
|
|
|
{
|
|
|
|
|
|
public string LoginId { get; set; }
|
|
|
|
|
|
public string AccessToken { get; set; } = string.Empty;
|
|
|
|
|
|
public string RefreshToken { get; set; } = string.Empty;
|
2026-06-16 15:18:22 +06:00
|
|
|
|
public EnumLoginStatus LoginStatus { get; set; }
|
2026-06-15 18:26:58 +06:00
|
|
|
|
public DateTime AccessTokenExpiry { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-16 15:18:22 +06:00
|
|
|
|
|
|
|
|
|
|
public class RefreshTokenResponse : ResponseBase
|
2026-06-15 18:26:58 +06:00
|
|
|
|
{
|
|
|
|
|
|
public string UserId { get; set; }
|
|
|
|
|
|
public string TokenHash { get; set; }
|
|
|
|
|
|
public string IpAddress { get; set; }
|
|
|
|
|
|
public DateTime ExpiredAt { get; set; }
|
|
|
|
|
|
public DateTime? RevokedAt { get; set; }
|
|
|
|
|
|
public string DeviceInfo { get; set; }
|
2026-06-16 11:36:11 +06:00
|
|
|
|
public bool IsActive { get; set; }
|
2026-06-15 18:26:58 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-16 15:18:22 +06:00
|
|
|
|
public class GenerateRefreshTokenResponse : ResponseBase
|
2026-06-15 18:26:58 +06:00
|
|
|
|
{
|
|
|
|
|
|
public string RefreshToken { get; set; }
|
|
|
|
|
|
public DateTime ExpireTime { get; set; }
|
|
|
|
|
|
}
|