refactoring: --YavscLib-- => Yavsc
This commit is contained in:
parent
724e0e17ef
commit
776b7dae21
102 changed files with 216 additions and 209 deletions
12
Yavsc.Abstract/Identity/IApplicationUser.cs
Normal file
12
Yavsc.Abstract/Identity/IApplicationUser.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IApplicationUser
|
||||
{
|
||||
string Id { get; set; }
|
||||
string UserName { get; set; }
|
||||
string Avatar { get ; set; }
|
||||
IAccountBalance AccountBalance { get; set; }
|
||||
string DedicatedGoogleCalendar { get; set; }
|
||||
ILocation PostalAddress { get; set; }
|
||||
}
|
||||
}
|
||||
21
Yavsc.Abstract/Identity/IChatUserInfo.cs
Normal file
21
Yavsc.Abstract/Identity/IChatUserInfo.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
string ConnectionId { get; set; }
|
||||
string UserAgent { get; set; }
|
||||
bool Connected { get; set; }
|
||||
}
|
||||
|
||||
public interface IChatUserInfo
|
||||
{
|
||||
IConnection[] Connections { get; set; }
|
||||
string UserId { get; set; }
|
||||
|
||||
string UserName { get; set; }
|
||||
|
||||
string Avatar { get; set; }
|
||||
|
||||
string[] Roles { get; set; }
|
||||
}
|
||||
}
|
||||
8
Yavsc.Abstract/Identity/Security/ICircleAuthorization.cs
Normal file
8
Yavsc.Abstract/Identity/Security/ICircleAuthorization.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
|
||||
public interface ICircleAuthorization
|
||||
{
|
||||
long CircleId { get; set; }
|
||||
}
|
||||
}
|
||||
11
Yavsc.Abstract/Identity/Security/ICircleAuthorized.cs
Normal file
11
Yavsc.Abstract/Identity/Security/ICircleAuthorized.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ICircleAuthorized
|
||||
{
|
||||
long Id { get; set; }
|
||||
string GetOwnerId ();
|
||||
bool AuthorizeCircle(long circleId);
|
||||
ICircleAuthorization [] GetACL();
|
||||
|
||||
}
|
||||
}
|
||||
21
Yavsc.Abstract/Identity/UserInfo.cs
Normal file
21
Yavsc.Abstract/Identity/UserInfo.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace Yavsc.Models.Auth
|
||||
{
|
||||
public class UserInfo {
|
||||
|
||||
public UserInfo()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public UserInfo(string userId, string userName, string avatar)
|
||||
{
|
||||
UserId = userId;
|
||||
UserName = userName;
|
||||
Avatar = avatar;
|
||||
}
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue