reorg
This commit is contained in:
parent
d000f77098
commit
40e8e08690
3487 changed files with 39 additions and 21 deletions
10
src/Yavsc.Server/ViewModels/Auth/AuthorisationView.cs
Normal file
10
src/Yavsc.Server/ViewModels/Auth/AuthorisationView.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
namespace Yavsc.Models.Auth
|
||||
{
|
||||
public class AuthorisationView {
|
||||
public Scope[] Scopes { get; set; }
|
||||
public string Message { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
12
src/Yavsc.Server/ViewModels/Auth/ClaimTypes.cs
Normal file
12
src/Yavsc.Server/ViewModels/Auth/ClaimTypes.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
|
||||
|
||||
namespace Yavsc {
|
||||
public static class YavscClaimTypes {
|
||||
|
||||
public const string CircleMembership = "CircleMembership";
|
||||
|
||||
public const string GoogleUserId = "GoogleUserId";
|
||||
}
|
||||
|
||||
}
|
||||
12
src/Yavsc.Server/ViewModels/Auth/DeletePermission.cs
Normal file
12
src/Yavsc.Server/ViewModels/Auth/DeletePermission.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth
|
||||
{
|
||||
public class DeletePermission: IAuthorizationRequirement
|
||||
{
|
||||
public DeletePermission()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
12
src/Yavsc.Server/ViewModels/Auth/EditPermission.cs
Normal file
12
src/Yavsc.Server/ViewModels/Auth/EditPermission.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth
|
||||
{
|
||||
public class EditPermission : IAuthorizationRequirement
|
||||
{
|
||||
public EditPermission()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
25
src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs
Normal file
25
src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
using System.IO;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Yavsc.Models.Blog;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth {
|
||||
|
||||
public class FileSpotInfo : IAuthorizationRequirement
|
||||
{
|
||||
public DirectoryInfo PathInfo { get; private set; }
|
||||
|
||||
public FileSpotInfo(string path, BlogPost b) {
|
||||
PathInfo = new DirectoryInfo(path);
|
||||
AuthorId = b.AuthorId;
|
||||
BlogEntryId = b.Id;
|
||||
}
|
||||
public string AuthorId { get; private set; }
|
||||
public long BlogEntryId { get; private set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth
|
||||
{
|
||||
public class ModerationRequirement : IAuthorizationRequirement
|
||||
{
|
||||
public ModerationRequirement() {}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth
|
||||
{
|
||||
public class PrivateChatEntryRequirement : IAuthorizationRequirement
|
||||
{
|
||||
}
|
||||
}
|
||||
12
src/Yavsc.Server/ViewModels/Auth/ReadPermission.cs
Normal file
12
src/Yavsc.Server/ViewModels/Auth/ReadPermission.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth
|
||||
{
|
||||
public class ReadPermission: IAuthorizationRequirement
|
||||
{
|
||||
public ReadPermission()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
12
src/Yavsc.Server/ViewModels/Auth/ViewFileContext.cs
Normal file
12
src/Yavsc.Server/ViewModels/Auth/ViewFileContext.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
|
||||
namespace Yavsc.ViewModels.Auth
|
||||
{
|
||||
public class ViewFileContext
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public IFileInfo File { get; set; }
|
||||
public string Path { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue