diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/AuditingRemoteServiceConsts.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/AuditingRemoteServiceConsts.cs index 7c1a01f7d..0b1e81ac6 100644 --- a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/AuditingRemoteServiceConsts.cs +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/AuditingRemoteServiceConsts.cs @@ -3,4 +3,5 @@ public static class AuditingRemoteServiceConsts { public const string RemoteServiceName = "AbpAuditing"; + public const string ModuleName = "auditing"; } diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/AuditLogClientProxy.Generated.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/AuditLogClientProxy.Generated.cs new file mode 100644 index 000000000..b2870e09d --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/AuditLogClientProxy.Generated.cs @@ -0,0 +1,51 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.Auditing.AuditLogs; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.AuditLogs; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IAuditLogAppService), typeof(AuditLogClientProxy))] +public partial class AuditLogClientProxy : ClientProxyBase, IAuditLogAppService +{ + public virtual async Task DeleteAsync(Guid id) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task DeleteManyAsync(AuditLogDeleteManyInput input) + { + await RequestAsync(nameof(DeleteManyAsync), new ClientProxyRequestTypeValue + { + { typeof(AuditLogDeleteManyInput), input } + }); + } + + public virtual async Task GetAsync(Guid id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task> GetListAsync(AuditLogGetByPagedDto input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(AuditLogGetByPagedDto), input } + }); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/AuditLogClientProxy.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/AuditLogClientProxy.cs new file mode 100644 index 000000000..5e7158e05 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/AuditLogClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of AuditLogClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.AuditLogs; + +public partial class AuditLogClientProxy +{ +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesClientProxy.Generated.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesClientProxy.Generated.cs new file mode 100644 index 000000000..f9dcfe980 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesClientProxy.Generated.cs @@ -0,0 +1,51 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.Auditing.AuditLogs; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.AuditLogs; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IEntityChangesAppService), typeof(EntityChangesClientProxy))] +public partial class EntityChangesClientProxy : ClientProxyBase, IEntityChangesAppService +{ + public virtual async Task GetAsync(Guid id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task> GetListAsync(EntityChangeGetByPagedDto input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(EntityChangeGetByPagedDto), input } + }); + } + + public virtual async Task GetWithUsernameAsync(Guid id) + { + return await RequestAsync(nameof(GetWithUsernameAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task> GetWithUsernameAsync(EntityChangeGetWithUsernameDto input) + { + return await RequestAsync>(nameof(GetWithUsernameAsync), new ClientProxyRequestTypeValue + { + { typeof(EntityChangeGetWithUsernameDto), input } + }); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesClientProxy.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesClientProxy.cs new file mode 100644 index 000000000..155e3edc1 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of EntityChangesClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.AuditLogs; + +public partial class EntityChangesClientProxy +{ +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/Logging/LogClientProxy.Generated.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/Logging/LogClientProxy.Generated.cs new file mode 100644 index 000000000..3a4a3a055 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/Logging/LogClientProxy.Generated.cs @@ -0,0 +1,35 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.Auditing.Logging; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.Logging; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(ILogAppService), typeof(LogClientProxy))] +public partial class LogClientProxy : ClientProxyBase, ILogAppService +{ + public virtual async Task GetAsync(string id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(string), id } + }); + } + + public virtual async Task> GetListAsync(LogGetByPagedDto input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(LogGetByPagedDto), input } + }); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/Logging/LogClientProxy.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/Logging/LogClientProxy.cs new file mode 100644 index 000000000..ccd994244 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/Logging/LogClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of LogClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.Logging; + +public partial class LogClientProxy +{ +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogClientProxy.Generated.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogClientProxy.Generated.cs new file mode 100644 index 000000000..fbf9cebe3 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogClientProxy.Generated.cs @@ -0,0 +1,51 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.Auditing.SecurityLogs; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.SecurityLogs; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(ISecurityLogAppService), typeof(SecurityLogClientProxy))] +public partial class SecurityLogClientProxy : ClientProxyBase, ISecurityLogAppService +{ + public virtual async Task DeleteAsync(Guid id) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task DeleteManyAsync(SecurityLogDeleteManyInput input) + { + await RequestAsync(nameof(DeleteManyAsync), new ClientProxyRequestTypeValue + { + { typeof(SecurityLogDeleteManyInput), input } + }); + } + + public virtual async Task GetAsync(Guid id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task> GetListAsync(SecurityLogGetByPagedDto input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(SecurityLogGetByPagedDto), input } + }); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogClientProxy.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogClientProxy.cs new file mode 100644 index 000000000..e23219f22 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of SecurityLogClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.Auditing.SecurityLogs; + +public partial class SecurityLogClientProxy +{ +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/auditing-generate-proxy.json b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/auditing-generate-proxy.json new file mode 100644 index 000000000..e3c8ece58 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/ClientProxies/auditing-generate-proxy.json @@ -0,0 +1,1451 @@ +{ + "modules": { + "auditing": { + "rootPath": "auditing", + "remoteServiceName": "AbpAuditing", + "controllers": { + "LINGYUN.Abp.Auditing.AuditLogs.AuditLogController": { + "controllerName": "AuditLog", + "controllerGroupName": "audit-log", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogController", + "interfaces": [ + { + "type": "LINGYUN.Abp.Auditing.AuditLogs.IAuditLogAppService", + "name": "IAuditLogAppService", + "methods": [ + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteManyAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "DeleteAsyncById": { + "uniqueName": "DeleteAsyncById", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/auditing/audit-log/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IAuditLogAppService" + }, + "DeleteManyAsyncByInput": { + "uniqueName": "DeleteManyAsyncByInput", + "name": "DeleteManyAsync", + "httpMethod": "DELETE", + "url": "api/auditing/audit-log/bulk", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDeleteManyInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IAuditLogAppService" + }, + "GetAsyncById": { + "uniqueName": "GetAsyncById", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/auditing/audit-log/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IAuditLogAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/auditing/audit-log", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.AuditLogGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "StartTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EndTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "HttpMethod", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Url", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "UserId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "UserName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ApplicationName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "CorrelationId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ClientId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ClientIpAddress", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxExecutionDuration", + "jsonName": null, + "type": "System.Int32?", + "typeSimple": "number?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MinExecutionDuration", + "jsonName": null, + "type": "System.Int32?", + "typeSimple": "number?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "HasException", + "jsonName": null, + "type": "System.Boolean?", + "typeSimple": "boolean?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "HttpStatusCode", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IAuditLogAppService" + } + } + }, + "LINGYUN.Abp.Auditing.AuditLogs.EntityChangesController": { + "controllerName": "EntityChanges", + "controllerGroupName": "entity-changes", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangesController", + "interfaces": [ + { + "type": "LINGYUN.Abp.Auditing.AuditLogs.IEntityChangesAppService", + "name": "IEntityChangesAppService", + "methods": [ + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeDto" + } + }, + { + "name": "GetWithUsernameAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeWithUsernameDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeWithUsernameDto" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + } + }, + { + "name": "GetWithUsernameAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetWithUsernameDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetWithUsernameDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetWithUsernameDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + } + ] + } + ], + "actions": { + "GetAsyncById": { + "uniqueName": "GetAsyncById", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/auditing/entity-changes/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IEntityChangesAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/auditing/entity-changes", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "AuditLogId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "StartTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EndTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChangeType", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EntityId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EntityTypeFullName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IEntityChangesAppService" + }, + "GetWithUsernameAsyncById": { + "uniqueName": "GetWithUsernameAsyncById", + "name": "GetWithUsernameAsync", + "httpMethod": "GET", + "url": "api/auditing/entity-changes/with-username/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeWithUsernameDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeWithUsernameDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IEntityChangesAppService" + }, + "GetWithUsernameAsyncByInput": { + "uniqueName": "GetWithUsernameAsyncByInput", + "name": "GetWithUsernameAsync", + "httpMethod": "GET", + "url": "api/auditing/entity-changes/with-username", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetWithUsernameDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetWithUsernameDto", + "typeSimple": "LINGYUN.Abp.Auditing.AuditLogs.EntityChangeGetWithUsernameDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "EntityId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EntityTypeFullName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.AuditLogs.IEntityChangesAppService" + } + } + }, + "LINGYUN.Abp.Auditing.Logging.LogController": { + "controllerName": "Log", + "controllerGroupName": "logging", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.Auditing.Logging.LogController", + "interfaces": [ + { + "type": "LINGYUN.Abp.Auditing.Logging.ILogAppService", + "name": "ILogAppService", + "methods": [ + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.Logging.LogDto", + "typeSimple": "LINGYUN.Abp.Auditing.Logging.LogDto" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.Logging.LogGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.Logging.LogGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.Logging.LogGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + } + } + ] + } + ], + "actions": { + "GetAsyncById": { + "uniqueName": "GetAsyncById", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/auditing/logging/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.Logging.LogDto", + "typeSimple": "LINGYUN.Abp.Auditing.Logging.LogDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.Logging.ILogAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/auditing/logging", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.Logging.LogGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.Logging.LogGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.Logging.LogGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "StartTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EndTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Level", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MachineName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Environment", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Application", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Context", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "RequestId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "RequestPath", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "CorrelationId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ProcessId", + "jsonName": null, + "type": "System.Int32?", + "typeSimple": "number?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ThreadId", + "jsonName": null, + "type": "System.Int32?", + "typeSimple": "number?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "HasException", + "jsonName": null, + "type": "System.Boolean?", + "typeSimple": "boolean?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.Logging.ILogAppService" + } + } + }, + "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogController": { + "controllerName": "SecurityLog", + "controllerGroupName": "security-log", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogController", + "interfaces": [ + { + "type": "LINGYUN.Abp.Auditing.SecurityLogs.ISecurityLogAppService", + "name": "ISecurityLogAppService", + "methods": [ + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDto", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteManyAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "DeleteAsyncById": { + "uniqueName": "DeleteAsyncById", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/auditing/security-log/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.SecurityLogs.ISecurityLogAppService" + }, + "DeleteManyAsyncByInput": { + "uniqueName": "DeleteManyAsyncByInput", + "name": "DeleteManyAsync", + "httpMethod": "DELETE", + "url": "api/auditing/security-log/bulk", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDeleteManyInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.SecurityLogs.ISecurityLogAppService" + }, + "GetAsyncById": { + "uniqueName": "GetAsyncById", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/auditing/security-log/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDto", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.SecurityLogs.ISecurityLogAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/auditing/security-log", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogGetByPagedDto, LINGYUN.Abp.Auditing.Application.Contracts", + "type": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogGetByPagedDto", + "typeSimple": "LINGYUN.Abp.Auditing.SecurityLogs.SecurityLogGetByPagedDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "StartTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EndTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ApplicationName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Identity", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ActionName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "UserId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "UserName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ClientId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "CorrelationId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.Auditing.SecurityLogs.ISecurityLogAppService" + } + } + } + } + } + }, + "types": {} +} \ No newline at end of file diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/FodyWeavers.xml b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/FodyWeavers.xml new file mode 100644 index 000000000..1715698cc --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/FodyWeavers.xsd b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/FodyWeavers.xsd new file mode 100644 index 000000000..3f3946e28 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/LINGYUN.Abp.Auditing.HttpApi.Client.csproj b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/LINGYUN.Abp.Auditing.HttpApi.Client.csproj new file mode 100644 index 000000000..ba369d7f6 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/LINGYUN.Abp.Auditing.HttpApi.Client.csproj @@ -0,0 +1,32 @@ + + + + + + + netstandard2.0;netstandard2.1;net8.0;net9.0 + LINGYUN.Abp.Auditing.HttpApi.Client + LINGYUN.Abp.Auditing.HttpApi.Client + false + false + false + + + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/LINGYUN/Abp/Auditing/AbpAuditingHttpApiClientModule.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/LINGYUN/Abp/Auditing/AbpAuditingHttpApiClientModule.cs new file mode 100644 index 000000000..7d66448db --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi.Client/LINGYUN/Abp/Auditing/AbpAuditingHttpApiClientModule.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Modularity; +using Volo.Abp.VirtualFileSystem; + +namespace LINGYUN.Abp.Auditing; + +[DependsOn( + typeof(AbpAuditingApplicationContractsModule), + typeof(AbpHttpClientModule))] +public class AbpAuditingHttpApiClientModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + context.Services.AddStaticHttpClientProxies( + typeof(AbpAuditingApplicationContractsModule).Assembly, + AuditingRemoteServiceConsts.RemoteServiceName); + + Configure(options => + { + options.FileSets.AddEmbedded(); + }); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/AuditLogController.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/AuditLogController.cs index 12397733d..9f992b4c5 100644 --- a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/AuditLogController.cs +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/AuditLogController.cs @@ -13,7 +13,7 @@ namespace LINGYUN.Abp.Auditing.AuditLogs; [RemoteService(Name = AuditingRemoteServiceConsts.RemoteServiceName)] [Area("auditing")] [ControllerName("audit-log")] -[Route("api/auditing/audit-log")] +[Route($"api/{AuditingRemoteServiceConsts.ModuleName}/audit-log")] [Authorize(AuditingPermissionNames.AuditLog.Default)] public class AuditLogController : AbpControllerBase, IAuditLogAppService { diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesController.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesController.cs index 0879d8892..2d2b98261 100644 --- a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesController.cs +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/AuditLogs/EntityChangesController.cs @@ -13,7 +13,7 @@ namespace LINGYUN.Abp.Auditing.AuditLogs; [RemoteService(Name = AuditingRemoteServiceConsts.RemoteServiceName)] [Area("auditing")] [ControllerName("entity-changes")] -[Route("api/auditing/entity-changes")] +[Route($"api/{AuditingRemoteServiceConsts.ModuleName}/entity-changes")] [Authorize(AuditingPermissionNames.AuditLog.Default)] public class EntityChangesController : AbpControllerBase, IEntityChangesAppService { diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/Logging/LogController.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/Logging/LogController.cs index bbdfe0dd9..ce4e23ba7 100644 --- a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/Logging/LogController.cs +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/Logging/LogController.cs @@ -12,7 +12,7 @@ namespace LINGYUN.Abp.Auditing.Logging; [RemoteService(Name = AuditingRemoteServiceConsts.RemoteServiceName)] [Area("auditing")] [ControllerName("logging")] -[Route("api/auditing/logging")] +[Route($"api/{AuditingRemoteServiceConsts.ModuleName}/logging")] [Authorize(AuditingPermissionNames.SystemLog.Default)] public class LogController : AbpControllerBase, ILogAppService { diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogController.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogController.cs index cc8af0999..35c0ab7ca 100644 --- a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogController.cs +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.HttpApi/LINGYUN/Abp/Auditing/SecurityLogs/SecurityLogController.cs @@ -13,7 +13,7 @@ namespace LINGYUN.Abp.Auditing.SecurityLogs; [RemoteService(Name = AuditingRemoteServiceConsts.RemoteServiceName)] [Area("auditing")] [ControllerName("security-log")] -[Route("api/auditing/security-log")] +[Route($"api/{AuditingRemoteServiceConsts.ModuleName}/security-log")] [Authorize(AuditingPermissionNames.SecurityLog.Default)] public class SecurityLogController : AbpControllerBase, ISecurityLogAppService { diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/AbpAuditingWebModule.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/AbpAuditingWebModule.cs new file mode 100644 index 000000000..fa2f4129c --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/AbpAuditingWebModule.cs @@ -0,0 +1,74 @@ +using LINGYUN.Abp.Auditing.Web.ProfileManagement; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.Account.Web; +using Volo.Abp.Account.Web.Pages.Account; +using Volo.Abp.Account.Web.ProfileManagement; +using Volo.Abp.AspNetCore.Mvc.Localization; +using Volo.Abp.AspNetCore.Mvc.UI.Bundling; +using Volo.Abp.AuditLogging.Localization; +using Volo.Abp.AutoMapper; +using Volo.Abp.Http.ProxyScripting.Generators.JQuery; +using Volo.Abp.Modularity; +using Volo.Abp.UI.Navigation; +using Volo.Abp.VirtualFileSystem; + +namespace LINGYUN.Abp.Auditing.Web; + +[DependsOn( + typeof(AbpAccountWebModule), + typeof(AbpAuditingApplicationContractsModule))] +public class AbpAuditingWebModule : AbpModule +{ + public override void PreConfigureServices(ServiceConfigurationContext context) + { + context.Services.PreConfigure(options => + { + options.AddAssemblyResource(typeof(AuditLoggingResource), typeof(AbpAuditingWebModule).Assembly); + }); + + PreConfigure(mvcBuilder => + { + mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpAuditingWebModule).Assembly); + }); + } + + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => + { + options.FileSets.AddEmbedded(); + }); + + ConfigureProfileManagementPage(); + + context.Services.AddAutoMapperObjectMapper(); + Configure(options => + { + options.AddMaps(validate: true); + }); + + Configure(options => + { + options.DisableModule(AuditingRemoteServiceConsts.ModuleName); + }); + } + + private void ConfigureProfileManagementPage() + { + Configure(options => + { + options.Contributors.Add(new SecurityLogManagementPageContributor()); + }); + + Configure(options => + { + options.ScriptBundles + .Configure(typeof(ManageModel).FullName, + configuration => + { + configuration.AddFiles("/client-proxies/auditing-proxy.js"); + configuration.AddFiles("/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.js"); + }); + }); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/FodyWeavers.xml b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/FodyWeavers.xml new file mode 100644 index 000000000..1715698cc --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/LINGYUN.Abp.Auditing.Web.csproj b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/LINGYUN.Abp.Auditing.Web.csproj new file mode 100644 index 000000000..35797b108 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/LINGYUN.Abp.Auditing.Web.csproj @@ -0,0 +1,39 @@ + + + + + + + net9.0 + LINGYUN.Abp.Auditing.Web + LINGYUN.Abp.Auditing.Web + false + false + false + true + LINGYUN.Abp.Auditing.Web + true + Library + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/AccountProfileSecurityLogManagementGroupViewComponent.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/AccountProfileSecurityLogManagementGroupViewComponent.cs new file mode 100644 index 000000000..e594b528b --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/AccountProfileSecurityLogManagementGroupViewComponent.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; +using Volo.Abp.AspNetCore.Mvc; + +namespace LINGYUN.Abp.Auditing.Web.Pages.Account.Components.ProfileManagementGroup.SecurityLog; + +public class AccountProfileSecurityLogManagementGroupViewComponent : AbpViewComponent +{ + public AccountProfileSecurityLogManagementGroupViewComponent() + { + } + + public async virtual Task InvokeAsync() + { + await Task.CompletedTask; + + return View("~/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.cshtml"); + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.cshtml b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.cshtml new file mode 100644 index 000000000..9cc605220 --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.cshtml @@ -0,0 +1,22 @@ +@using Microsoft.AspNetCore.Mvc.Localization +@using Volo.Abp.Account.Localization +@using Volo.Abp.Localization + +@inject IHtmlLocalizer L + +@section scripts { + +} + + + + + + @L["SecurityLog"] + + + + + + + diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.js b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.js new file mode 100644 index 000000000..28d48c27e --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Pages/Account/Components/ProfileManagementGroup/SecurityLog/Index.js @@ -0,0 +1,60 @@ +$(function () { + var ul = abp.localization.getResource('AbpUi'); + var il = abp.localization.getResource('AbpIdentity'); + var dataTable = $('#SecurityLogTable').DataTable( + abp.libs.datatables.normalizeConfiguration({ + serverSide: true, + paging: true, + searching: false, + scrollX: true, + ajax: abp.libs.datatables.createAjax(labp.auditing.securityLogs.securityLog.getList), + columnDefs: [ + { + title: ul('Actions'), + rowAction: { + items: + [ + { + text: il('RevokeSession'), + confirmMessage: function () { + return il('SessionWillBeRevokedMessage'); + }, + visible: function (data) { + return data.sessionId !== abp.currentUser?.sessionId; + }, + action: function (data) { + labp.account.myProfile + .revokeSession(data.record.sessionId) + .then(function () { + abp.notify.info( + il('SuccessfullyRevoked') + ); + dataTable.ajax.reload(); + }); + } + } + ] + } + }, + { + title: il('DisplayName:Device'), + data: "device" + }, + { + title: il('DisplayName:IpAddresses'), + data: "ipAddresses" + }, + { + title: il('DisplayName:SignedIn'), + data: "signedIn", + render: function (data) { + return luxon + .DateTime + .fromISO(data, { + locale: abp.localization.currentCulture.name + }).toLocaleString(luxon.DateTime.DATETIME_FULL_WITH_SECONDS); + } + }] + }) + ); +}); diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/ProfileManagement/SecurityLogManagementPageContributor.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/ProfileManagement/SecurityLogManagementPageContributor.cs new file mode 100644 index 000000000..c521a732c --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/ProfileManagement/SecurityLogManagementPageContributor.cs @@ -0,0 +1,26 @@ +using LINGYUN.Abp.Auditing.Web.Pages.Account.Components.ProfileManagementGroup.SecurityLog; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Localization; +using System.Threading.Tasks; +using Volo.Abp.Account.Web.ProfileManagement; +using Volo.Abp.AuditLogging.Localization; + +namespace LINGYUN.Abp.Auditing.Web.ProfileManagement; + +public class SecurityLogManagementPageContributor : IProfileManagementPageContributor +{ + public virtual Task ConfigureAsync(ProfileManagementPageCreationContext context) + { + var l = context.ServiceProvider.GetRequiredService>(); + + context.Groups.Add( + new ProfileManagementPageGroup( + "LINGYUN.Abp.Account.SecurityLog", + l["SecurityLog"], + typeof(AccountProfileSecurityLogManagementGroupViewComponent) + ) + ); + + return Task.CompletedTask; + } +} diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Properties/launchSettings.json b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Properties/launchSettings.json new file mode 100644 index 000000000..4b94e23fd --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "LINGYUN.Abp.Auditing.Web": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:62925;http://localhost:62926" + } + } +} \ No newline at end of file diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/wwwroot/client-proxies/auditing-proxy.js b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/wwwroot/client-proxies/auditing-proxy.js new file mode 100644 index 000000000..9b0535a2e --- /dev/null +++ b/aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Web/wwwroot/client-proxies/auditing-proxy.js @@ -0,0 +1,146 @@ +/* This file is automatically generated by ABP framework to use MVC Controllers from javascript. */ + + +// module auditing + +(function(){ + + // controller labp.auditing.auditLogs.auditLog + + (function(){ + + abp.utils.createNamespace(window, 'labp.auditing.auditLogs.auditLog'); + + labp.auditing.auditLogs.auditLog['delete'] = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/audit-log/' + id + '', + type: 'DELETE', + dataType: null + }, ajaxParams)); + }; + + labp.auditing.auditLogs.auditLog.deleteMany = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/audit-log/bulk', + type: 'DELETE', + dataType: null, + data: JSON.stringify(input) + }, ajaxParams)); + }; + + labp.auditing.auditLogs.auditLog.get = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/audit-log/' + id + '', + type: 'GET' + }, ajaxParams)); + }; + + labp.auditing.auditLogs.auditLog.getList = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/audit-log' + abp.utils.buildQueryString([{ name: 'startTime', value: input.startTime }, { name: 'endTime', value: input.endTime }, { name: 'httpMethod', value: input.httpMethod }, { name: 'url', value: input.url }, { name: 'userId', value: input.userId }, { name: 'userName', value: input.userName }, { name: 'applicationName', value: input.applicationName }, { name: 'correlationId', value: input.correlationId }, { name: 'clientId', value: input.clientId }, { name: 'clientIpAddress', value: input.clientIpAddress }, { name: 'maxExecutionDuration', value: input.maxExecutionDuration }, { name: 'minExecutionDuration', value: input.minExecutionDuration }, { name: 'hasException', value: input.hasException }, { name: 'httpStatusCode', value: input.httpStatusCode }, { name: 'sorting', value: input.sorting }, { name: 'skipCount', value: input.skipCount }, { name: 'maxResultCount', value: input.maxResultCount }]) + '', + type: 'GET' + }, ajaxParams)); + }; + + })(); + + // controller labp.auditing.auditLogs.entityChanges + + (function(){ + + abp.utils.createNamespace(window, 'labp.auditing.auditLogs.entityChanges'); + + labp.auditing.auditLogs.entityChanges.get = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/entity-changes/' + id + '', + type: 'GET' + }, ajaxParams)); + }; + + labp.auditing.auditLogs.entityChanges.getList = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/entity-changes' + abp.utils.buildQueryString([{ name: 'auditLogId', value: input.auditLogId }, { name: 'startTime', value: input.startTime }, { name: 'endTime', value: input.endTime }, { name: 'changeType', value: input.changeType }, { name: 'entityId', value: input.entityId }, { name: 'entityTypeFullName', value: input.entityTypeFullName }, { name: 'sorting', value: input.sorting }, { name: 'skipCount', value: input.skipCount }, { name: 'maxResultCount', value: input.maxResultCount }]) + '', + type: 'GET' + }, ajaxParams)); + }; + + labp.auditing.auditLogs.entityChanges.getWithUsernameAsyncById = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/entity-changes/with-username/' + id + '', + type: 'GET' + }, ajaxParams)); + }; + + labp.auditing.auditLogs.entityChanges.getWithUsernameAsyncByInput = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/entity-changes/with-username' + abp.utils.buildQueryString([{ name: 'entityId', value: input.entityId }, { name: 'entityTypeFullName', value: input.entityTypeFullName }]) + '', + type: 'GET' + }, ajaxParams)); + }; + + })(); + + // controller labp.auditing.logging.log + + (function(){ + + abp.utils.createNamespace(window, 'labp.auditing.logging.log'); + + labp.auditing.logging.log.get = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/logging/' + id + '', + type: 'GET' + }, ajaxParams)); + }; + + labp.auditing.logging.log.getList = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/logging' + abp.utils.buildQueryString([{ name: 'startTime', value: input.startTime }, { name: 'endTime', value: input.endTime }, { name: 'level', value: input.level }, { name: 'machineName', value: input.machineName }, { name: 'environment', value: input.environment }, { name: 'application', value: input.application }, { name: 'context', value: input.context }, { name: 'requestId', value: input.requestId }, { name: 'requestPath', value: input.requestPath }, { name: 'correlationId', value: input.correlationId }, { name: 'processId', value: input.processId }, { name: 'threadId', value: input.threadId }, { name: 'hasException', value: input.hasException }, { name: 'sorting', value: input.sorting }, { name: 'skipCount', value: input.skipCount }, { name: 'maxResultCount', value: input.maxResultCount }]) + '', + type: 'GET' + }, ajaxParams)); + }; + + })(); + + // controller labp.auditing.securityLogs.securityLog + + (function(){ + + abp.utils.createNamespace(window, 'labp.auditing.securityLogs.securityLog'); + + labp.auditing.securityLogs.securityLog['delete'] = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/security-log/' + id + '', + type: 'DELETE', + dataType: null + }, ajaxParams)); + }; + + labp.auditing.securityLogs.securityLog.deleteMany = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/security-log/bulk', + type: 'DELETE', + dataType: null, + data: JSON.stringify(input) + }, ajaxParams)); + }; + + labp.auditing.securityLogs.securityLog.get = function(id, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/security-log/' + id + '', + type: 'GET' + }, ajaxParams)); + }; + + labp.auditing.securityLogs.securityLog.getList = function(input, ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/auditing/security-log' + abp.utils.buildQueryString([{ name: 'startTime', value: input.startTime }, { name: 'endTime', value: input.endTime }, { name: 'applicationName', value: input.applicationName }, { name: 'identity', value: input.identity }, { name: 'actionName', value: input.actionName }, { name: 'userId', value: input.userId }, { name: 'userName', value: input.userName }, { name: 'clientId', value: input.clientId }, { name: 'correlationId', value: input.correlationId }, { name: 'sorting', value: input.sorting }, { name: 'skipCount', value: input.skipCount }, { name: 'maxResultCount', value: input.maxResultCount }]) + '', + type: 'GET' + }, ajaxParams)); + }; + + })(); + +})(); + +