mirror of https://github.com/abpframework/abp.git
60 changed files with 633 additions and 110 deletions
@ -1,3 +1,3 @@ |
|||||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
||||
<ConfigureAwait /> |
<ConfigureAwait ContinueOnCapturedContext="false" /> |
||||
</Weavers> |
</Weavers> |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.Account |
||||
|
{ |
||||
|
public static class AccountRemoteServiceConsts |
||||
|
{ |
||||
|
public const string RemoteServiceName = "AbpAccount"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Blogging |
||||
|
{ |
||||
|
public static class BloggingRemoteServiceConsts |
||||
|
{ |
||||
|
public const string RemoteServiceName = "Blogging"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
using System; |
||||
|
using JetBrains.Annotations; |
||||
|
|
||||
|
namespace Volo.Blogging.Blogs |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class BlogEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string ShortName { get; set; } |
||||
|
|
||||
|
[CanBeNull] |
||||
|
public string Description { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Blogging.Comments |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class CommentEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public Guid PostId { get; set; } |
||||
|
|
||||
|
public Guid? RepliedCommentId { get; set; } |
||||
|
|
||||
|
public string Text { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,29 @@ |
|||||
|
using JetBrains.Annotations; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using Volo.Blogging.Tagging; |
||||
|
|
||||
|
namespace Volo.Blogging.Posts |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class PostEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public Guid BlogId { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string Url { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string CoverImage { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string Title { get; set; } |
||||
|
|
||||
|
[CanBeNull] |
||||
|
public string Content { get; set; } |
||||
|
|
||||
|
public int ReadCount { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
using System; |
||||
|
using JetBrains.Annotations; |
||||
|
|
||||
|
namespace Volo.Blogging.Tagging |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class TagEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public Guid BlogId { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
public int UsageCount { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
using AutoMapper; |
||||
|
using Volo.Blogging.Blogs; |
||||
|
using Volo.Blogging.Comments; |
||||
|
using Volo.Blogging.Posts; |
||||
|
using Volo.Blogging.Tagging; |
||||
|
|
||||
|
namespace Volo.Blogging |
||||
|
{ |
||||
|
public class BloggingDomainMappingProfile : Profile |
||||
|
{ |
||||
|
public BloggingDomainMappingProfile() |
||||
|
{ |
||||
|
CreateMap<Blog, BlogEto>(); |
||||
|
CreateMap<Comment, CommentEto>(); |
||||
|
CreateMap<Post, PostEto>(); |
||||
|
CreateMap<Tag, TagEto>(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,13 +1,37 @@ |
|||||
using Volo.Abp.Domain; |
using Microsoft.Extensions.DependencyInjection; |
||||
|
using Volo.Abp.AutoMapper; |
||||
|
using Volo.Abp.Domain; |
||||
|
using Volo.Abp.EventBus.Distributed; |
||||
using Volo.Abp.Modularity; |
using Volo.Abp.Modularity; |
||||
|
using Volo.Blogging.Blogs; |
||||
|
using Volo.Blogging.Comments; |
||||
|
using Volo.Blogging.Posts; |
||||
|
using Volo.Blogging.Tagging; |
||||
|
|
||||
namespace Volo.Blogging |
namespace Volo.Blogging |
||||
{ |
{ |
||||
[DependsOn( |
[DependsOn( |
||||
typeof(BloggingDomainSharedModule), |
typeof(BloggingDomainSharedModule), |
||||
typeof(AbpDddDomainModule))] |
typeof(AbpDddDomainModule), |
||||
|
typeof(AbpAutoMapperModule))] |
||||
public class BloggingDomainModule : AbpModule |
public class BloggingDomainModule : AbpModule |
||||
{ |
{ |
||||
|
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
|
{ |
||||
|
context.Services.AddAutoMapperObjectMapper<BloggingDomainModule>(); |
||||
|
|
||||
|
Configure<AbpAutoMapperOptions>(options => |
||||
|
{ |
||||
|
options.AddProfile<BloggingDomainMappingProfile>(validate: true); |
||||
|
}); |
||||
|
|
||||
|
Configure<AbpDistributedEventBusOptions>(options => |
||||
|
{ |
||||
|
options.EtoMappings.Add<Blog, BlogEto>(typeof(BloggingDomainModule)); |
||||
|
options.EtoMappings.Add<Comment, CommentEto>(typeof(BloggingDomainModule)); |
||||
|
options.EtoMappings.Add<Post, PostEto>(typeof(BloggingDomainModule)); |
||||
|
options.EtoMappings.Add<Tag, TagEto>(typeof(BloggingDomainModule)); |
||||
|
}); |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -0,0 +1,41 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace Volo.Docs.Documents |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class DocumentEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public Guid ProjectId { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public string Version { get; set; } |
||||
|
|
||||
|
public string LanguageCode { get; set; } |
||||
|
|
||||
|
public string FileName { get; set; } |
||||
|
|
||||
|
public string Content { get; set; } |
||||
|
|
||||
|
public string Format { get; set; } |
||||
|
|
||||
|
public string EditLink { get; set; } |
||||
|
|
||||
|
public string RootUrl { get; set; } |
||||
|
|
||||
|
public string RawRootUrl { get; set; } |
||||
|
|
||||
|
public string LocalDirectory { get; set; } |
||||
|
|
||||
|
public DateTime CreationTime { get; set; } |
||||
|
|
||||
|
public DateTime LastUpdatedTime { get; set; } |
||||
|
|
||||
|
public DateTime? LastSignificantUpdateTime { get; set; } |
||||
|
|
||||
|
public DateTime LastCachedTime { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Docs.Projects |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class ProjectEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public string ShortName { get; set; } |
||||
|
|
||||
|
public string Format { get; set; } |
||||
|
|
||||
|
public string DefaultDocumentName { get; set; } |
||||
|
|
||||
|
public string NavigationDocumentName { get; set; } |
||||
|
|
||||
|
public string ParametersDocumentName { get; set; } |
||||
|
|
||||
|
public string MinimumVersion { get; set; } |
||||
|
|
||||
|
public string DocumentStoreType { get; set; } |
||||
|
|
||||
|
public string MainWebsiteUrl { get; set; } |
||||
|
|
||||
|
public string LatestVersionBranchName { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
using AutoMapper; |
||||
|
using Volo.Docs.Documents; |
||||
|
using Volo.Docs.Projects; |
||||
|
|
||||
|
namespace Volo.Docs |
||||
|
{ |
||||
|
public class DocsDomainMappingProfile : Profile |
||||
|
{ |
||||
|
public DocsDomainMappingProfile() |
||||
|
{ |
||||
|
CreateMap<Document, DocumentEto>(); |
||||
|
CreateMap<Project, ProjectEto>(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.FeatureManagement |
||||
|
{ |
||||
|
public class FeatureManagementRemoteServiceConsts |
||||
|
{ |
||||
|
public const string RemoteServiceName = "FeatureManagement"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
public static class IdentityRemoteServiceConsts |
||||
|
{ |
||||
|
public const string RemoteServiceName = "AbpIdentity"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
using System; |
||||
|
using JetBrains.Annotations; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.ApiResources |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class ApiResourceEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
[NotNull] |
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public string DisplayName { get; set; } |
||||
|
|
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
public bool Enabled { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,84 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.Clients |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class ClientEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string ClientId { get; set; } |
||||
|
|
||||
|
public string ClientName { get; set; } |
||||
|
|
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
public string ClientUri { get; set; } |
||||
|
|
||||
|
public string LogoUri { get; set; } |
||||
|
|
||||
|
public bool Enabled { get; set; } = true; |
||||
|
|
||||
|
public string ProtocolType { get; set; } |
||||
|
|
||||
|
public bool RequireClientSecret { get; set; } |
||||
|
|
||||
|
public bool RequireConsent { get; set; } |
||||
|
|
||||
|
public bool AllowRememberConsent { get; set; } |
||||
|
|
||||
|
public bool AlwaysIncludeUserClaimsInIdToken { get; set; } |
||||
|
|
||||
|
public bool RequirePkce { get; set; } |
||||
|
|
||||
|
public bool AllowPlainTextPkce { get; set; } |
||||
|
|
||||
|
public bool AllowAccessTokensViaBrowser { get; set; } |
||||
|
|
||||
|
public string FrontChannelLogoutUri { get; set; } |
||||
|
|
||||
|
public bool FrontChannelLogoutSessionRequired { get; set; } |
||||
|
|
||||
|
public string BackChannelLogoutUri { get; set; } |
||||
|
|
||||
|
public bool BackChannelLogoutSessionRequired { get; set; } |
||||
|
|
||||
|
public bool AllowOfflineAccess { get; set; } |
||||
|
|
||||
|
public int IdentityTokenLifetime { get; set; } |
||||
|
|
||||
|
public int AccessTokenLifetime { get; set; } |
||||
|
|
||||
|
public int AuthorizationCodeLifetime { get; set; } |
||||
|
|
||||
|
public int? ConsentLifetime { get; set; } |
||||
|
|
||||
|
public int AbsoluteRefreshTokenLifetime { get; set; } |
||||
|
|
||||
|
public int SlidingRefreshTokenLifetime { get; set; } |
||||
|
|
||||
|
public int RefreshTokenUsage { get; set; } |
||||
|
|
||||
|
public bool UpdateAccessTokenClaimsOnRefresh { get; set; } |
||||
|
|
||||
|
public int RefreshTokenExpiration { get; set; } |
||||
|
|
||||
|
public int AccessTokenType { get; set; } |
||||
|
|
||||
|
public bool EnableLocalLogin { get; set; } |
||||
|
|
||||
|
public bool IncludeJwtId { get; set; } |
||||
|
|
||||
|
public bool AlwaysSendClientClaims { get; set; } |
||||
|
|
||||
|
public string ClientClaimsPrefix { get; set; } |
||||
|
|
||||
|
public string PairWiseSubjectSalt { get; set; } |
||||
|
|
||||
|
public int? UserSsoLifetime { get; set; } |
||||
|
|
||||
|
public string UserCodeType { get; set; } |
||||
|
|
||||
|
public int DeviceCodeLifetime { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,22 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.Devices |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class DeviceFlowCodesEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string DeviceCode { get; set; } |
||||
|
|
||||
|
public string UserCode { get; set; } |
||||
|
|
||||
|
public string SubjectId { get; set; } |
||||
|
|
||||
|
public string ClientId { get; set; } |
||||
|
|
||||
|
public DateTime? Expiration { get; set; } |
||||
|
|
||||
|
public string Data { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.Grants |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class PersistedGrantEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string Key { get; set; } |
||||
|
|
||||
|
public string Type { get; set; } |
||||
|
|
||||
|
public string SubjectId { get; set; } |
||||
|
|
||||
|
public string ClientId { get; set; } |
||||
|
|
||||
|
public DateTime CreationTime { get; set; } |
||||
|
|
||||
|
public DateTime? Expiration { get; set; } |
||||
|
|
||||
|
public string Data { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.IdentityResources |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class IdentityResourceEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public string DisplayName { get; set; } |
||||
|
|
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
public bool Enabled { get; set; } |
||||
|
|
||||
|
public bool Required { get; set; } |
||||
|
|
||||
|
public bool Emphasize { get; set; } |
||||
|
|
||||
|
public bool ShowInDiscoveryDocument { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.PermissionManagement |
||||
|
{ |
||||
|
public class PermissionManagementRemoteServiceConsts |
||||
|
{ |
||||
|
public const string RemoteServiceName = "AbpPermissionManagement"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.TenantManagement |
||||
|
{ |
||||
|
public class TenantManagementRemoteServiceConsts |
||||
|
{ |
||||
|
public const string RemoteServiceName = "AbpTenantManagement"; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue