feat: 完成合并
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user