Commit 38557d91 by 赵剑炜

增加忽略文件

parent 7088f928
......@@ -22,3 +22,52 @@
/Junmp.Platform.Common/obj/Release/net7.0/Junmp.Platform.Common.assets.cache
/Junmp.Platform.Common/obj/Release/net7.0/Junmp.Platform.Common.csproj.AssemblyReference.cache
/Junmp.Platform.Common/obj/Release/net7.0/Junmp.Platform.Common.GeneratedMSBuildEditorConfig.editorconfig
/Junmp.Platform.Common/bin/Debug/net7.0/Junmp.Platform.Common.dll
/Junmp.Platform.Common/bin/Debug/net7.0/Junmp.Platform.Common.pdb
/Junmp.Platform.Common/obj/Debug/net7.0/Junmp.Platform.Common.dll
/Junmp.Platform.Common/obj/Debug/net7.0/Junmp.Platform.Common.pdb
/Junmp.Platform.Entity/bin/Debug/net7.0/Junmp.Platform.Common.dll
/Junmp.Platform.Entity/bin/Debug/net7.0/Junmp.Platform.Common.pdb
/Junmp.Platform.Entity/obj/Debug/net7.0/Junmp.Platform.Entity.csproj.AssemblyReference.cache
/Junmp.Platform.Repository/bin/Debug/net7.0/Junmp.Platform.Common.dll
/Junmp.Platform.Repository/bin/Debug/net7.0/Junmp.Platform.Common.pdb
/Junmp.Platform.Repository/bin/Debug/net7.0/Junmp.Platform.Repository.dll
/Junmp.Platform.Repository/bin/Debug/net7.0/Junmp.Platform.Repository.pdb
/Junmp.Platform.Repository/obj/Debug/net7.0/Junmp.Platform.Repository.csproj.AssemblyReference.cache
/Junmp.Platform.Repository/obj/Debug/net7.0/Junmp.Platform.Repository.dll
/Junmp.Platform.Repository/obj/Debug/net7.0/Junmp.Platform.Repository.pdb
/Junmp.Platform.Service/bin/Debug/net7.0/Junmp.Platform.Common.dll
/Junmp.Platform.Service/bin/Debug/net7.0/Junmp.Platform.Common.pdb
/Junmp.Platform.Service/bin/Debug/net7.0/Junmp.Platform.Repository.dll
/Junmp.Platform.Service/bin/Debug/net7.0/Junmp.Platform.Repository.pdb
/Junmp.Platform.Service/bin/Debug/net7.0/Junmp.Platform.Service.dll
/Junmp.Platform.Service/bin/Debug/net7.0/Junmp.Platform.Service.pdb
/Junmp.Platform.Service/obj/Debug/net7.0/Junmp.Platform.Service.csproj.AssemblyReference.cache
/Junmp.Platform.Service/obj/Debug/net7.0/Junmp.Platform.Service.dll
/Junmp.Platform.Service/obj/Debug/net7.0/Junmp.Platform.Service.pdb
/Junmp.Platform.WebApi/AppCode/ActionFilters/PermissionAttribute.cs
/Junmp.Platform.WebApi/AppCode/FrameworkClass/AdminApplication.cs
/Junmp.Platform.WebApi/AppCode/FrameworkClass/RuYiAdminApplication.cs
/Junmp.Platform.WebApi/AppCode/FrameworkQuartz/AdminFrameworkJob.cs
/Junmp.Platform.WebApi/AppCode/FrameworkQuartz/RuYiAdminFrameworkJob.cs
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.Common.dll
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.Common.pdb
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.Repository.dll
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.Repository.pdb
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.Service.dll
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.Service.pdb
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.WebApi.dll
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.WebApi.pdb
/Junmp.Platform.WebApi/bin/Debug/net7.0/Junmp.Platform.WebApi.xml
/Junmp.Platform.WebApi/bin/Debug/net7.0/RuYiAdminRateLimitConfig.json
/Junmp.Platform.WebApi/Junmp - Backup.Platform.WebApi.csproj
/Junmp.Platform.WebApi/Junmp - Backup.ProcessWebApi.csproj
/Junmp.Platform.WebApi/Junmp.Platform.WebApi.xml
/Junmp.Platform.WebApi/obj/Debug/net7.0/Junmp.Platform.WebApi.csproj.AssemblyReference.cache
/Junmp.Platform.WebApi/obj/Debug/net7.0/Junmp.Platform.WebApi.csproj.CoreCompileInputs.cache
/Junmp.Platform.WebApi/obj/Debug/net7.0/Junmp.Platform.WebApi.csproj.FileListAbsolute.txt
/Junmp.Platform.WebApi/obj/Debug/net7.0/Junmp.Platform.WebApi.dll
/Junmp.Platform.WebApi/obj/Debug/net7.0/Junmp.Platform.WebApi.pdb
/Junmp.Platform.WebApi/obj/Debug/net7.0/ref/Junmp.Platform.WebApi.dll
/Junmp.Platform.WebApi/obj/Debug/net7.0/refint/Junmp.Platform.WebApi.dll
/Junmp.Platform.WebApi/RuYiAdminRateLimitConfig.json
......@@ -31,7 +31,7 @@ namespace Admin.Net.WebApi.AppCode.ActionFilters
}
/// <summary>
/// 动作鉴权
/// 自定义拦截器
/// </summary>
/// <param name="context"></param>
/// <exception cref="Exception"></exception>
......
//-----------------------------------------------------------------------
// <Copyright>
// * Copyright (C) 2022 Admin All Rights Reserved
// </Copyright>
//-----------------------------------------------------------------------
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Junmp.Platform.Common.Global;
using Admin.Net.Service.BusinessService.SystemManagement.ScheduleJobService;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Junmp.Platform.Repository.Base;
namespace Admin.Net.WebApi.AppCode.FrameworkClass
{
public class AdminApplication
{
#region 启动业务作业
/// <summary>
/// 启动业务作业
/// </summary>
/// <returns></returns>
public static async Task StartScheduleJobAsync(IApplicationBuilder app)
{
await app.ApplicationServices.GetService<IScheduleJobService>().StartScheduleJobAsync();
}
#endregion
#region 加载系统缓存
/// <summary>
/// 加载系统缓存
/// </summary>
/// <returns></returns>
public static async Task LoadSystemCache(IApplicationBuilder app)
{
//加载计划任务缓存
await app.ApplicationServices.GetService<IScheduleJobService>().LoadBusinessScheduleJobCache();
}
#endregion
#region 清理系统缓存
/// <summary>
/// 清理系统缓存
/// </summary>
/// <returns></returns>
public static async Task ClearSystemCache(IApplicationBuilder app)
{
//清理计划任务缓存
await app.ApplicationServices.GetService<IScheduleJobService>().ClearBusinessScheduleJobCache();
}
#endregion
#region 自动构建数据库
/// <summary>
/// 自动构建数据库
/// </summary>
/// <returns></returns>
public static async Task BuildDatabase()
{
await Task.Run(async () =>
{
if (AdminGlobalContext.DBConfig.AutomaticallyBuildDatabase)
{
try
{
AdminDbScope.DbContext.DbMaintenance.GetTableInfoList();
Console.WriteLine("Database is existed");
}
catch
{
Console.WriteLine("Database is not existed");
//Sql脚本路径
var sqlScriptPath = Path.Join(Directory.GetCurrentDirectory(), "/", AdminGlobalContext.DBConfig.SqlScriptPath);
//读取脚本内容
var content = File.ReadAllText(sqlScriptPath);
//创建数据库
AdminDbScope.DbContext.DbMaintenance.CreateDatabase();
Console.WriteLine("Database created");
//构建表结构
await AdminDbScope.DbContext.Ado.ExecuteCommandAsync(content);
Console.WriteLine("Tables created");
}
}
});
}
#endregion
#region 初始化多租户
/// <summary>
/// 初始化多租户
/// </summary>
/// <returns></returns>
public static async Task InitTenants()
{
await Task.Run(() =>
{
var tenants = AdminGlobalContext.TenantsConfig.TenantsList;
if (tenants.Count > 0)
{
var connectionConfigs = new List<ConnectionConfig>();
foreach (var item in tenants)
{
var onnectionConfig = new ConnectionConfig()
{
ConfigId = item.TenantId,
DbType = (DbType)item.DbType,
ConnectionString = item.ConnectionString,
IsAutoCloseConnection = item.IsAutoCloseConnection,
};
connectionConfigs.Add(onnectionConfig);
}
AdminDbScope.TenantDbContext = new SqlSugarScope(connectionConfigs);
foreach (var item in tenants)
{
AdminDbScope.TenantDbContext.GetConnectionScope(item.TenantId).Aop.OnLogExecuting = (sql, p) =>
{
Console.WriteLine(sql);
};
}
}
});
}
#endregion
}
}
//-----------------------------------------------------------------------
// <Copyright>
// * Copyright (C) 2022 Admin All Rights Reserved
// </Copyright>
//-----------------------------------------------------------------------
using Microsoft.Extensions.Logging;
using Quartz;
using Junmp.Platform.Common.Global;
using Junmp.Platform.Common.Utility;
using System;
using System.Threading.Tasks;
namespace Admin.Net.WebApi.AppCode.FrameworkQuartz
{
[DisallowConcurrentExecution]
public class AdminFrameworkJob : IJob
{
private readonly ILogger<AdminFrameworkJob> _logger;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="logger"></param>
public AdminFrameworkJob(ILogger<AdminFrameworkJob> logger)
{
_logger = logger;
}
/// <summary>
/// 执行框架作业
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Task Execute(IJobExecutionContext context)
{
String time = DateTime.Now.ToString("HH:mm");
if (time.Equals("04:00"))
{
//清理临时文件、释放服务器存储空间
FileContext.ClearDirectory(AdminGlobalContext.DirectoryConfig.GetTempPath());
}
_logger.LogInformation("Admin Framework Job Executed!");
return Task.CompletedTask;
}
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<DockerComposeProjectPath>../docker-compose.dcproj</DockerComposeProjectPath>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyName>Junmp.Platform.WebApi</AssemblyName>
<RootNamespace>Junmp.Platform.WebApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>..\Junmp.Platform.WebApi\Junmp.Platform.WebApi.xml</DocumentationFile>
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<Compile Remove="StorageDirectory\**" />
<Compile Remove="wwwroot\build\**" />
<Compile Remove="wwwroot\mock\**" />
<Compile Remove="wwwroot\plop-templates\**" />
<Compile Remove="wwwroot\public\**" />
<Compile Remove="wwwroot\src\**" />
<Compile Remove="wwwroot\tests\**" />
<Content Remove="StorageDirectory\**" />
<Content Remove="wwwroot\build\**" />
<Content Remove="wwwroot\mock\**" />
<Content Remove="wwwroot\plop-templates\**" />
<Content Remove="wwwroot\public\**" />
<Content Remove="wwwroot\src\**" />
<Content Remove="wwwroot\tests\**" />
<EmbeddedResource Remove="StorageDirectory\**" />
<EmbeddedResource Remove="wwwroot\build\**" />
<EmbeddedResource Remove="wwwroot\mock\**" />
<EmbeddedResource Remove="wwwroot\plop-templates\**" />
<EmbeddedResource Remove="wwwroot\public\**" />
<EmbeddedResource Remove="wwwroot\src\**" />
<EmbeddedResource Remove="wwwroot\tests\**" />
<None Remove="StorageDirectory\**" />
<None Remove="wwwroot\build\**" />
<None Remove="wwwroot\mock\**" />
<None Remove="wwwroot\plop-templates\**" />
<None Remove="wwwroot\public\**" />
<None Remove="wwwroot\src\**" />
<None Remove="wwwroot\tests\**" />
<TypeScriptCompile Remove="wwwroot\build\**" />
<TypeScriptCompile Remove="wwwroot\mock\**" />
<TypeScriptCompile Remove="wwwroot\plop-templates\**" />
<TypeScriptCompile Remove="wwwroot\public\**" />
<TypeScriptCompile Remove="wwwroot\src\**" />
<TypeScriptCompile Remove="wwwroot\tests\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="wwwroot\.editorconfig" />
<Content Remove="wwwroot\.env.development" />
<Content Remove="wwwroot\.env.production" />
<Content Remove="wwwroot\.env.staging" />
<Content Remove="wwwroot\.eslintignore" />
<Content Remove="wwwroot\.eslintrc.js" />
<Content Remove="wwwroot\.gitignore" />
<Content Remove="wwwroot\.travis.yml" />
<Content Remove="wwwroot\babel.config.js" />
<Content Remove="wwwroot\jest.config.js" />
<Content Remove="wwwroot\jsconfig.json" />
<Content Remove="wwwroot\LICENSE" />
<Content Remove="wwwroot\package.json" />
<Content Remove="wwwroot\plopfile.js" />
<Content Remove="wwwroot\postcss.config.js" />
<Content Remove="wwwroot\README.es.md" />
<Content Remove="wwwroot\README.ja.md" />
<Content Remove="wwwroot\README.md" />
<Content Remove="wwwroot\README.zh-CN.md" />
<Content Remove="wwwroot\vue.config.js" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
<PackageReference Include="Autofac" Version="6.5.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Com.Ctrip.Framework.Apollo.Configuration" Version="2.9.1" />
<PackageReference Include="Consul" Version="1.6.10.8" />
<PackageReference Include="DotNetCore.CAP" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.Kafka" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.MongoDB" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.MySql" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.PostgreSql" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.RedisStreams" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.SqlServer" Version="7.0.0" />
<PackageReference Include="Lazy.Captcha.Core" Version="1.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.ConcurrencyLimiter" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="7.0.1" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
<PackageReference Include="MiniProfiler.EntityFrameworkCore" Version="4.2.22" />
<PackageReference Include="Polly" Version="7.2.3" />
<PackageReference Include="Quartz" Version="3.5.0" />
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="7.0.6" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup>
<Content Update="Log4net\log4net.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="SqlConfig\BaseSQL.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="SqlConfig\BizModule.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="SqlConfig\SystemManagement.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Admin.Net.Common.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Junmp.Platform.Entity.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Admin.Net.WebApi.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="TemplatesDirectory\BizUserTemplate.xls">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="AppData\SQLite\DataModel\" />
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Junmp.Platform.Common\Junmp.Platform.Common.csproj" />
<ProjectReference Include="..\Junmp.Platform.Entity\Junmp.Platform.Entity.csproj" />
<ProjectReference Include="..\Junmp.Platform.Repository\Junmp.Platform.Repository.csproj" />
<ProjectReference Include="..\Junmp.Platform.Service\Junmp.Platform.Service.csproj" />
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
</Project>
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<DockerComposeProjectPath>../docker-compose.dcproj</DockerComposeProjectPath>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyName>Junmp.Process.WebApi</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>..\Admin.Net.WebApi\Admin.Net.WebApi.xml</DocumentationFile>
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<Compile Remove="StorageDirectory\**" />
<Compile Remove="wwwroot\build\**" />
<Compile Remove="wwwroot\mock\**" />
<Compile Remove="wwwroot\plop-templates\**" />
<Compile Remove="wwwroot\public\**" />
<Compile Remove="wwwroot\src\**" />
<Compile Remove="wwwroot\tests\**" />
<Content Remove="StorageDirectory\**" />
<Content Remove="wwwroot\build\**" />
<Content Remove="wwwroot\mock\**" />
<Content Remove="wwwroot\plop-templates\**" />
<Content Remove="wwwroot\public\**" />
<Content Remove="wwwroot\src\**" />
<Content Remove="wwwroot\tests\**" />
<EmbeddedResource Remove="StorageDirectory\**" />
<EmbeddedResource Remove="wwwroot\build\**" />
<EmbeddedResource Remove="wwwroot\mock\**" />
<EmbeddedResource Remove="wwwroot\plop-templates\**" />
<EmbeddedResource Remove="wwwroot\public\**" />
<EmbeddedResource Remove="wwwroot\src\**" />
<EmbeddedResource Remove="wwwroot\tests\**" />
<None Remove="StorageDirectory\**" />
<None Remove="wwwroot\build\**" />
<None Remove="wwwroot\mock\**" />
<None Remove="wwwroot\plop-templates\**" />
<None Remove="wwwroot\public\**" />
<None Remove="wwwroot\src\**" />
<None Remove="wwwroot\tests\**" />
<TypeScriptCompile Remove="wwwroot\build\**" />
<TypeScriptCompile Remove="wwwroot\mock\**" />
<TypeScriptCompile Remove="wwwroot\plop-templates\**" />
<TypeScriptCompile Remove="wwwroot\public\**" />
<TypeScriptCompile Remove="wwwroot\src\**" />
<TypeScriptCompile Remove="wwwroot\tests\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="wwwroot\.editorconfig" />
<Content Remove="wwwroot\.env.development" />
<Content Remove="wwwroot\.env.production" />
<Content Remove="wwwroot\.env.staging" />
<Content Remove="wwwroot\.eslintignore" />
<Content Remove="wwwroot\.eslintrc.js" />
<Content Remove="wwwroot\.gitignore" />
<Content Remove="wwwroot\.travis.yml" />
<Content Remove="wwwroot\babel.config.js" />
<Content Remove="wwwroot\jest.config.js" />
<Content Remove="wwwroot\jsconfig.json" />
<Content Remove="wwwroot\LICENSE" />
<Content Remove="wwwroot\package.json" />
<Content Remove="wwwroot\plopfile.js" />
<Content Remove="wwwroot\postcss.config.js" />
<Content Remove="wwwroot\README.es.md" />
<Content Remove="wwwroot\README.ja.md" />
<Content Remove="wwwroot\README.md" />
<Content Remove="wwwroot\README.zh-CN.md" />
<Content Remove="wwwroot\vue.config.js" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
<PackageReference Include="Autofac" Version="6.5.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Com.Ctrip.Framework.Apollo.Configuration" Version="2.9.1" />
<PackageReference Include="Consul" Version="1.6.10.8" />
<PackageReference Include="DotNetCore.CAP" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.Kafka" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.MongoDB" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.MySql" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.PostgreSql" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.RedisStreams" Version="7.0.0" />
<PackageReference Include="DotNetCore.CAP.SqlServer" Version="7.0.0" />
<PackageReference Include="Lazy.Captcha.Core" Version="1.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.ConcurrencyLimiter" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="7.0.1" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
<PackageReference Include="MiniProfiler.EntityFrameworkCore" Version="4.2.22" />
<PackageReference Include="Polly" Version="7.2.3" />
<PackageReference Include="Quartz" Version="3.5.0" />
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="7.0.6" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Admin.Net.Common\Junmp.Process.Common.csproj" />
<ProjectReference Include="..\Junmp.Process.Entity\Junmp.Process.Entity.csproj" />
<ProjectReference Include="..\Admin.Net.Repository\Junmp.Process.Repository.csproj" />
<ProjectReference Include="..\Admin.Net.Service\Junmp.Process.Service.csproj" />
</ItemGroup>
<ItemGroup>
<Content Update="Log4net\log4net.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="SqlConfig\BaseSQL.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="SqlConfig\BizModule.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="SqlConfig\SystemManagement.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Admin.Net.Common.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Junmp.Process.Entity.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Admin.Net.WebApi.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="TemplatesDirectory\banner.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="TemplatesDirectory\BizUserTemplate.xls">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="TemplatesDirectory\CommonConfigTest.xls">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="TemplatesDirectory\RoleTemplate.xls">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="TemplatesDirectory\UserTemplate.xls">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="AppData\SQLite\DataModel\" />
<Folder Include="wwwroot\" />
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
</Project>
......@@ -26,7 +26,7 @@
</member>
<member name="M:Admin.Net.WebApi.AppCode.ActionFilters.PermissionAttribute.OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext)">
<summary>
动作鉴权
自定义拦截器
</summary>
<param name="context"></param>
<exception cref="T:System.Exception"></exception>
......@@ -37,6 +37,30 @@
</summary>
<param name="context">ActionExecutingContext</param>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.StartScheduleJobAsync(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
启动业务作业
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.LoadSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
加载系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.ClearSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
清理系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.InitTenants">
<summary>
初始化多租户
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.ChatHub.SendMsg(System.String,System.String)">
<summary>
给连接的所有人发送消息
......@@ -88,36 +112,6 @@
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.StartScheduleJobAsync(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
启动业务作业
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.LoadSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
加载系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.ClearSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
清理系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.BuildDatabase">
<summary>
自动构建数据库
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.InitTenants">
<summary>
初始化多租户
</summary>
<returns></returns>
</member>
<member name="T:Admin.Net.WebApi.AppCode.FrameworkExtensions.GlobalExceptionHandlerExtensions">
<summary>
全局异常处理中间件
......
{
"IpRateLimiting": {
//false则全局将应用限制,并且仅应用具有作为端点的规则* true则限制将应用于每个端点,如{HTTP_Verb}{PATH}
"EnableEndpointRateLimiting": true,
//false则拒绝的API调用不会添加到调用次数计数器上
"StackBlockedRequests": false,
//注意这个配置,表示获取用户端的真实IP,我们的线上经过负载后是 X-Forwarded-For,而测试服务器没有,所以是X-Real-IP
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"QuotaExceededResponse": {
"Content": "{{\"Success\":false,\"Message\":\"too many requests, please try again later.\"}}",
"ContentType": "application/json",
"StatusCode": 429
},
"IpWhitelist": [],
"EndpointWhitelist": [],
"ClientWhitelist": [],
"GeneralRules": [
{
"Endpoint": "*:/API/AdminHealth/Get",
"Period": "10s",
"Limit": 1
},
{
"Endpoint": "*:/API/WeatherForecast/Get",
"Period": "10s",
"Limit": 1
},
{
"Endpoint": "*:/API/LanguageManagement/Post",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/AdminCaptcha/GetCaptcha",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/UserManagement/Logon",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/AdminSystem/GetMomType",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/JwtSecurityAuthentication/Get",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/JwtSecurityAuthentication/Post",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/JwtSecurityAuthentication/RefreshToken",
"Period": "10s",
"Limit": 1
},
{
"Endpoint": "*:/API/BizUserManagement/Add",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/Put",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/DeleteRange",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/GetSalt",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/GetToken",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserModuleManagement/Logon",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserModuleManagement/UpdatePassword",
"Period": "10s",
"Limit": 1
}
]
},
"IpRateLimitPolicies": {
//ip规则
"IpRules": [
//{
// //IP
// "Ip": "127.0.0.1",
// //规则内容
// "Rules": [
// //1s请求10
// {
// "Endpoint": "*:/API/AdminHealth/Get",
// "Period": "10s",
// "Limit": 1
// }
// ]
//}
]
}
}
\ No newline at end of file
......@@ -26,7 +26,7 @@
</member>
<member name="M:Admin.Net.WebApi.AppCode.ActionFilters.PermissionAttribute.OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext)">
<summary>
动作鉴权
自定义拦截器
</summary>
<param name="context"></param>
<exception cref="T:System.Exception"></exception>
......@@ -37,6 +37,30 @@
</summary>
<param name="context">ActionExecutingContext</param>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.StartScheduleJobAsync(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
启动业务作业
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.LoadSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
加载系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.ClearSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
清理系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.InitTenants">
<summary>
初始化多租户
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.ChatHub.SendMsg(System.String,System.String)">
<summary>
给连接的所有人发送消息
......@@ -88,36 +112,6 @@
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.StartScheduleJobAsync(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
启动业务作业
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.LoadSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
加载系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.ClearSystemCache(Microsoft.AspNetCore.Builder.IApplicationBuilder)">
<summary>
清理系统缓存
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.BuildDatabase">
<summary>
自动构建数据库
</summary>
<returns></returns>
</member>
<member name="M:Admin.Net.WebApi.AppCode.FrameworkClass.AdminApplication.InitTenants">
<summary>
初始化多租户
</summary>
<returns></returns>
</member>
<member name="T:Admin.Net.WebApi.AppCode.FrameworkExtensions.GlobalExceptionHandlerExtensions">
<summary>
全局异常处理中间件
......
{
"IpRateLimiting": {
//false则全局将应用限制,并且仅应用具有作为端点的规则* true则限制将应用于每个端点,如{HTTP_Verb}{PATH}
"EnableEndpointRateLimiting": true,
//false则拒绝的API调用不会添加到调用次数计数器上
"StackBlockedRequests": false,
//注意这个配置,表示获取用户端的真实IP,我们的线上经过负载后是 X-Forwarded-For,而测试服务器没有,所以是X-Real-IP
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"QuotaExceededResponse": {
"Content": "{{\"Success\":false,\"Message\":\"too many requests, please try again later.\"}}",
"ContentType": "application/json",
"StatusCode": 429
},
"IpWhitelist": [],
"EndpointWhitelist": [],
"ClientWhitelist": [],
"GeneralRules": [
{
"Endpoint": "*:/API/AdminHealth/Get",
"Period": "10s",
"Limit": 1
},
{
"Endpoint": "*:/API/WeatherForecast/Get",
"Period": "10s",
"Limit": 1
},
{
"Endpoint": "*:/API/LanguageManagement/Post",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/AdminCaptcha/GetCaptcha",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/UserManagement/Logon",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/AdminSystem/GetMomType",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/JwtSecurityAuthentication/Get",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/JwtSecurityAuthentication/Post",
"Period": "10s",
"Limit": 2
},
{
"Endpoint": "*:/API/JwtSecurityAuthentication/RefreshToken",
"Period": "10s",
"Limit": 1
},
{
"Endpoint": "*:/API/BizUserManagement/Add",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/Put",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/DeleteRange",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/GetSalt",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserManagement/GetToken",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserModuleManagement/Logon",
"Period": "5s",
"Limit": 2
},
{
"Endpoint": "*:/API/BizUserModuleManagement/UpdatePassword",
"Period": "10s",
"Limit": 1
}
]
},
"IpRateLimitPolicies": {
//ip规则
"IpRules": [
//{
// //IP
// "Ip": "127.0.0.1",
// //规则内容
// "Rules": [
// //1s请求10
// {
// "Endpoint": "*:/API/AdminHealth/Get",
// "Period": "10s",
// "Limit": 1
// }
// ]
//}
]
}
}
\ No newline at end of file
e5981387ca4585eb3a9d9b54b18002ce63e0b089
d3c6f590ff6c04d9032170c8ed98dd6363b3130b
......@@ -5,7 +5,6 @@ C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\SqlConfig\CodeGenerator.config
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\appsettings.Development.json
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\appsettings.json
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\RuYiAdminRateLimitConfig.json
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\Library\Tesseract\chi_sim.traineddata
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\Log4net\log4net.config
C:\项目\JYZB-Git\JYZB3.0\审核\Junmp.Process\Junmp.Platform.WebApi\bin\Debug\net7.0\SqlConfig\BaseSQL.config
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论