22 lines
583 B
C#
22 lines
583 B
C#
|
|
namespace Meezi.API.Models.Auth;
|
||
|
|
|
||
|
|
public record SendOtpRequest(string Phone);
|
||
|
|
|
||
|
|
public record VerifyOtpRequest(string Phone, string Code, string? CafeId = null);
|
||
|
|
|
||
|
|
public record RefreshTokenRequest(string RefreshToken);
|
||
|
|
|
||
|
|
public record AuthTokenResponse(
|
||
|
|
string AccessToken,
|
||
|
|
string RefreshToken,
|
||
|
|
DateTime ExpiresAt,
|
||
|
|
string UserId,
|
||
|
|
string CafeId,
|
||
|
|
string Role,
|
||
|
|
string PlanTier,
|
||
|
|
string Language,
|
||
|
|
string Actor = Meezi.Core.Constants.MeeziActorKinds.Merchant,
|
||
|
|
string? BranchId = null);
|
||
|
|
|
||
|
|
public record SendOtpResponse(bool Sent, int ExpiresInSeconds);
|