feat(account): enable native account management and register API Identity services
Some checks failed
Dotnet build and test / build (pull_request) Has been cancelled
Some checks failed
Dotnet build and test / build (pull_request) Has been cancelled
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
5e22b9a232
commit
f050ee4456
9 changed files with 1402 additions and 102 deletions
59
src/Yavsc.Abstract/Identity/AccountSecurityRequests.cs
Normal file
59
src/Yavsc.Abstract/Identity/AccountSecurityRequests.cs
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
#nullable enable
|
||||
|
||||
namespace Yavsc.Abstract.Identity;
|
||||
|
||||
public sealed class ChangePasswordRequest
|
||||
{
|
||||
public string CurrentPassword { get; set; } = string.Empty;
|
||||
public string NewPassword { get; set; } = string.Empty;
|
||||
public string ConfirmPassword { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class TwoFactorRequest
|
||||
{
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
|
||||
public sealed class MonthlyEmailPreferenceRequest
|
||||
{
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
|
||||
public sealed class DeleteAccountRequest
|
||||
{
|
||||
public string UsernameConfirmation { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class LinkedExternalLogin
|
||||
{
|
||||
public string Provider { get; set; } = string.Empty;
|
||||
public string ProviderKey { get; set; } = string.Empty;
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class BankAccountInfo
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string IBAN { get; set; } = string.Empty;
|
||||
public string BIC { get; set; } = string.Empty;
|
||||
public string BankCode { get; set; } = string.Empty;
|
||||
public string WicketCode { get; set; } = string.Empty;
|
||||
public string AccountNumber { get; set; } = string.Empty;
|
||||
public int BankedKey { get; set; }
|
||||
}
|
||||
|
||||
public sealed class BankAccountInfoRequest
|
||||
{
|
||||
public string IBAN { get; set; } = string.Empty;
|
||||
public string BIC { get; set; } = string.Empty;
|
||||
public string BankCode { get; set; } = string.Empty;
|
||||
public string WicketCode { get; set; } = string.Empty;
|
||||
public string AccountNumber { get; set; } = string.Empty;
|
||||
public int BankedKey { get; set; }
|
||||
}
|
||||
|
||||
public sealed class CalendarOption
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
|
@ -3,6 +3,18 @@
|
|||
namespace Yavsc.Abstract.Identity {
|
||||
public class Me : UserInfo
|
||||
{
|
||||
public bool EmailConfirmed { get; set; }
|
||||
public bool AllowMonthlyEmail { get; set; }
|
||||
public bool HasPassword { get; set; }
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
public int ExternalLoginCount { get; set; }
|
||||
public long PostsCounter { get; set; }
|
||||
public long DiskUsage { get; set; }
|
||||
public long DiskQuota { get; set; }
|
||||
public decimal Credits { get; set; }
|
||||
public BankAccountInfo[] BankAccounts { get; set; } = [];
|
||||
public LinkedExternalLogin[] ExternalLogins { get; set; } = [];
|
||||
|
||||
public AuthToken? Token {
|
||||
get;
|
||||
set;
|
||||
|
|
|
|||
Loading…
Reference in a new issue