Files
Backend-Api/0_Framework/Application/IAuthHelper.cs

29 lines
802 B
C#

using System.Collections.Generic;
namespace _0_Framework.Application;
public interface IAuthHelper
{
void SignOut();
bool IsAuthenticated();
void Signin(AuthViewModel account);
void CameraSignIn(CameraAuthViewModel account);
CameraAuthViewModel CameraAccountInfo();
string CurrentAccountRole();
AuthViewModel CurrentAccountInfo();
List<int> GetPermissions();
bool HasPermission(int permission);
long CurrentAccountId();
string CurrentAccountMobile();
#region Vafa
void UpdateWorkshopSlugClaim(string workshopSlug, string workshopName, long workshopId);
#endregion
long CurrentSubAccountId();
string GetWorkshopSlug();
string GetWorkshopName();
long GetWorkshopId();
(long Id, UserType userType, long roleId) GetUserTypeWithId();
}