2026-06-28 19:02:40 +06:00
|
|
|
|
using System;
|
2026-06-15 18:26:58 +06:00
|
|
|
|
|
|
|
|
|
|
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-07-07 12:15:19 +06:00
|
|
|
|
|
2026-06-21 16:51:27 +06:00
|
|
|
|
public class IntegrationRrefreshTokenResponse : ResponseBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public string AccessToken { get; set; } = string.Empty;
|
|
|
|
|
|
public string RefreshToken { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-07 12:15:19 +06:00
|
|
|
|
public class MobileRrefreshTokenResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string AccessToken { get; set; } = string.Empty;
|
|
|
|
|
|
public string RefreshToken { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-28 19:02:40 +06:00
|
|
|
|
public class RefreshTokenResponse : ResponseBase
|
2026-06-15 18:26:58 +06:00
|
|
|
|
{
|
2026-06-28 19:02:40 +06:00
|
|
|
|
public int UserId { get; set; }
|
2026-06-15 18:26:58 +06:00
|
|
|
|
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; }
|
2026-06-28 19:02:40 +06:00
|
|
|
|
public DateTime ExpireTime { get; set; }
|
2026-06-21 16:51:27 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-28 19:02:40 +06:00
|
|
|
|
public class UserByRefreshTokenResponse : ResponseBase
|
2026-06-21 16:51:27 +06:00
|
|
|
|
{
|
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
|
public string LoginId { get; set; }
|
2026-06-28 19:02:40 +06:00
|
|
|
|
public string EmailAddress { get; set; }
|
|
|
|
|
|
public string AuthKey { get; set; }
|
|
|
|
|
|
public bool IsActive { set; get; }
|
2026-06-15 18:26:58 +06:00
|
|
|
|
}
|