feat: 完成操作日志模块+添加文件模块
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\framework\Yi.Framework.Core\Yi.Framework.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Yi.Framework.FileManager
|
||||
{
|
||||
public class YiFrameworkFileManagerModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ using Yi.Framework.Core.Helper;
|
||||
using Yi.Framework.Ddd.Repositories;
|
||||
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
public class GlobalOperLogAttribute : ActionFilterAttribute
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Ddd.Services.Abstract;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
/// <summary>
|
||||
/// OperationLog服务抽象
|
||||
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
public enum OperEnum
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class OperLogAttribute : Attribute
|
||||
@@ -6,7 +6,7 @@ using SqlSugar;
|
||||
using Yi.Framework.Data.Auditing;
|
||||
using Yi.Framework.Ddd.Entities;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
/// <summary>
|
||||
/// 操作日志表
|
||||
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Ddd.Dtos;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
public class OperationLogGetListInputVo : PagedAllResultRequestDto
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Ddd.Dtos;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
public class OperationLogGetListOutputDto : IEntityDto<long>
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using Yi.Framework.Core.Attributes;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
/// <summary>
|
||||
/// OperationLog服务实现
|
||||
@@ -4,10 +4,10 @@ using StartupModules;
|
||||
using Yi.Framework.Core;
|
||||
using Yi.Framework.Core.Attributes;
|
||||
|
||||
namespace Yi.Framework.OperLog
|
||||
namespace Yi.Framework.OperLogManager
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCoreModule))]
|
||||
public class YiFrameworkOperLogModule : IStartupModule
|
||||
public class YiFrameworkOperLogManagerModule : IStartupModule
|
||||
{
|
||||
public void Configure(IApplicationBuilder app, ConfigureMiddlewareContext context)
|
||||
{
|
||||
@@ -18,6 +18,13 @@ namespace Yi.Framework.OperLog
|
||||
services.AddControllers(options => {
|
||||
options.Filters.Add<GlobalOperLogAttribute>();
|
||||
});
|
||||
services.AddAutoApiService(opt =>
|
||||
{
|
||||
//NETServiceTest所在程序集添加进动态api配置
|
||||
opt.CreateConventional(typeof(YiFrameworkOperLogManagerModule).Assembly, option => option.RootPath = string.Empty);
|
||||
|
||||
});
|
||||
|
||||
services.AddSingleton<GlobalOperLogAttribute>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user