feat: 搭建chathub模块

This commit is contained in:
橙子
2024-04-04 14:00:32 +08:00
parent 6404f1b786
commit b57d56f317
23 changed files with 216 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\common.props" />
<ItemGroup>
<ProjectReference Include="..\..\..\framework\Yi.Framework.Ddd.Application.Contracts\Yi.Framework.Ddd.Application.Contracts.csproj" />
<ProjectReference Include="..\Yi.Framework.ChatHub.Domain.Shared\Yi.Framework.ChatHub.Domain.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Dtos\" />
<Folder Include="IServices\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
using Yi.Framework.ChatHub.Domain.Shared;
using Yi.Framework.Ddd.Application.Contracts;
namespace Yi.Framework.ChatHub.Application.Contracts
{
[DependsOn(typeof(YiFrameworkChatHubDomainSharedModule),
typeof(YiFrameworkDddApplicationContractsModule)
)]
public class YiFrameworkChatHubApplicationContractsModule : AbpModule
{
}
}

View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\common.props" />
<ItemGroup>
<ProjectReference Include="..\..\..\framework\Yi.Framework.Ddd.Application\Yi.Framework.Ddd.Application.csproj" />
<ProjectReference Include="..\Yi.Framework.ChatHub.Application.Contracts\Yi.Framework.ChatHub.Application.Contracts.csproj" />
<ProjectReference Include="..\Yi.Framework.ChatHub.Domain\Yi.Framework.ChatHub.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Jobs\" />
<Folder Include="Services\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
using Yi.Framework.ChatHub.Domain;
using Yi.Framework.Ddd.Application.Contracts;
namespace Yi.Framework.ChatHub.Application
{
[DependsOn(typeof(YiFrameworkChatHubDomainModule),
typeof(YiFrameworkDddApplicationContractsModule)
)]
public class YiFrameworkChatHubApplicationModule : AbpModule
{
}
}

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\common.props" />
<ItemGroup>
<Folder Include="Caches\" />
<Folder Include="Consts\" />
<Folder Include="Enums\" />
<Folder Include="Etos\" />
<Folder Include="Model\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Domain.Shared" Version="$(AbpVersion)" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,11 @@
using Volo.Abp.Domain;
namespace Yi.Framework.ChatHub.Domain.Shared
{
[DependsOn(
typeof(AbpDddDomainSharedModule))]
public class YiFrameworkChatHubDomainSharedModule : AbpModule
{
}
}

View File

@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\common.props" />
<ItemGroup>
<ProjectReference Include="..\Yi.Framework.ChatHub.Domain.Shared\Yi.Framework.ChatHub.Domain.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.AspNetCore.SignalR" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Caching" Version="$(AbpVersion)" />
</ItemGroup>
<ItemGroup>
<Folder Include="Entities\" />
<Folder Include="EventHandlers\" />
<Folder Include="Managers\" />
<Folder Include="Repositories\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,19 @@
using Volo.Abp.Domain;
using Yi.Framework.ChatHub.Domain.Shared;
namespace Yi.Framework.ChatHub.Domain
{
[DependsOn(
typeof(YiFrameworkChatHubDomainSharedModule),
typeof(AbpDddDomainModule)
)]
public class YiFrameworkChatHubDomainModule : AbpModule
{
public override async Task OnPostApplicationInitializationAsync(ApplicationInitializationContext context)
{
}
}
}

View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\common.props" />
<ItemGroup>
<ProjectReference Include="..\Yi.Framework.ChatHub.Domain\Yi.Framework.ChatHub.Domain.csproj" />
<ProjectReference Include="..\..\..\framework\Yi.Framework.Mapster\Yi.Framework.Mapster.csproj" />
<ProjectReference Include="..\..\..\framework\Yi.Framework.SqlSugarCore\Yi.Framework.SqlSugarCore.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="DataSeeds\" />
<Folder Include="Repositories\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
using Yi.Framework.ChatHub.Domain;
using Yi.Framework.SqlSugarCore;
namespace Yi.Framework.ChatHub.SqlSugarCore
{
[DependsOn(
typeof(YiFrameworkChatHubDomainModule),
typeof(YiFrameworkSqlSugarCoreModule))]
public class YiFrameworkChatHubSqlSugarCoreModule : AbpModule
{
}
}