2023-01-05 19:21:48 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Common.Abstract
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface ICurrentUser
|
|
|
|
|
|
{
|
|
|
|
|
|
public bool IsAuthenticated { get; set; }
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool EmailVerified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string PhoneNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool PhoneNumberVerified { get; set; }
|
|
|
|
|
|
|
2023-01-06 10:15:37 +08:00
|
|
|
|
public string[]? Roles { get; set; }
|
2023-01-05 19:21:48 +08:00
|
|
|
|
|
2023-01-06 10:15:37 +08:00
|
|
|
|
public string[]? Permission { get; set; }
|
2023-01-05 19:21:48 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|