add voice service call service and more
This commit is contained in:
@@ -7,8 +7,10 @@ public sealed class DeviceDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string DeviceName { get; set; } = string.Empty;
|
||||
public string Owner { get; set; } = string.Empty;
|
||||
public string Mobile { get; set; } = string.Empty;
|
||||
public int UserId { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string UserFamily { get; set; } = string.Empty;
|
||||
public string UserMobile { get; set; } = string.Empty;
|
||||
public string Location { get; set; } = string.Empty;
|
||||
public string NeshanLocation { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -66,6 +68,49 @@ public sealed class DayCount
|
||||
public int Count { get; set; }
|
||||
}
|
||||
|
||||
public sealed class SendCodeRequest
|
||||
{
|
||||
public required string Mobile { get; set; }
|
||||
}
|
||||
|
||||
public sealed class SendCodeResponse
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string? Message { get; set; }
|
||||
public int ResendAfterSeconds { get; set; } = 120;
|
||||
}
|
||||
|
||||
public sealed class VerifyCodeRequest
|
||||
{
|
||||
public required string Mobile { get; set; }
|
||||
public required string Code { get; set; }
|
||||
}
|
||||
|
||||
public sealed class VerifyCodeResponse
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string? Message { get; set; }
|
||||
public string? Token { get; set; }
|
||||
public UserDto? User { get; set; }
|
||||
}
|
||||
|
||||
public sealed class UserDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Mobile { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Family { get; set; } = string.Empty;
|
||||
public Domain.UserRole Role { get; set; }
|
||||
}
|
||||
|
||||
public sealed class DeviceFilter
|
||||
{
|
||||
public int? UserId { get; set; }
|
||||
public string? Search { get; set; } // جستجو در نام دستگاه، نام صاحب، نام خانوادگی صاحب، Location
|
||||
public int Page { get; set; } = 1;
|
||||
public int PageSize { get; set; } = 10;
|
||||
}
|
||||
|
||||
public sealed class DeviceSettingsDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
@@ -92,4 +137,4 @@ public sealed class DeviceSettingsDto
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user