feat: 完成合并

This commit is contained in:
陈淳
2023-02-22 19:21:21 +08:00
parent 49acf0c7c9
commit 8639372513
30 changed files with 61 additions and 43 deletions

View File

@@ -1,16 +1,16 @@
using NET.AutoWebApi.Setting;
using Yi.Framework.Ddd.Services;
using Yi.Framework.Ddd.Dtos;
using Yi.Framework.Core.Attributes;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using Cike.AutoWebApi.Setting;
namespace Yi.Framework.OperLogManager
{
/// <summary>
/// OperationLog服务实现
/// </summary>
[AppService]
//[AppService]
public class OperationLogService : CrudAppService<OperationLogEntity, OperationLogGetListOutputDto, long, OperationLogGetListInputVo>,
IOperationLogService, IAutoApiService
{

View File

@@ -15,17 +15,21 @@ namespace Yi.Framework.OperLogManager
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
{
services.AddControllers(options => {
services.AddControllers(options =>
{
options.Filters.Add<GlobalOperLogAttribute>();
});
services.AddAutoApiService(opt =>
{
//NETServiceTest所在程序集添加进动态api配置
opt.CreateConventional(typeof(YiFrameworkOperLogManagerModule).Assembly, option => option.RootPath = string.Empty);
//services.AddAutoApiService(opt =>
//{
// //NETServiceTest所在程序集添加进动态api配置
// opt.CreateConventional(typeof(YiFrameworkOperLogManagerModule).Assembly, option => option.RootPath = string.Empty);
//});
});
services.AddSingleton<GlobalOperLogAttribute>();
services.AddTransient<OperationLogService>();
services.AddTransient<IOperationLogService, OperationLogService>();
}
}
}

View File

@@ -1,5 +1,5 @@
using #NameSpaces#.Application.Contracts.#ModelName#;
using NET.AutoWebApi.Setting;
using Cike.AutoWebApi.Setting;
using #NameSpaces#.Application.Contracts.#ModelName#.Dtos;
using #NameSpaces#.Domain.#ModelName#.Entities;
using Yi.Framework.Ddd.Services;