From 09006788afb900528f5aa4dd9698462e079b65a8 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Thu, 10 Aug 2023 18:06:31 +0800 Subject: [PATCH] Remove duplicate proxy classes --- .../IdentityRoleClientProxy.Generated.cs | 65 ------------ .../Abp/Identity/IdentityRoleClientProxy.cs | 7 -- .../IdentityUserClientProxy.Generated.cs | 98 ------------------- .../Abp/Identity/IdentityUserClientProxy.cs | 7 -- ...IdentityUserLookupClientProxy.Generated.cs | 52 ---------- .../Identity/IdentityUserLookupClientProxy.cs | 7 -- 6 files changed, 236 deletions(-) delete mode 100644 modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.Generated.cs delete mode 100644 modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.cs delete mode 100644 modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.Generated.cs delete mode 100644 modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.cs delete mode 100644 modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.Generated.cs delete mode 100644 modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.cs diff --git a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.Generated.cs b/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.Generated.cs deleted file mode 100644 index 64279a8019..0000000000 --- a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.Generated.cs +++ /dev/null @@ -1,65 +0,0 @@ -// This file is automatically generated by ABP framework to use MVC Controllers from CSharp -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; -using Volo.Abp.Identity; - -// ReSharper disable once CheckNamespace -namespace Volo.Abp.Identity; - -[Dependency(ReplaceServices = true)] -[ExposeServices(typeof(IIdentityRoleAppService), typeof(IdentityRoleClientProxy))] -public partial class IdentityRoleClientProxy : ClientProxyBase, IIdentityRoleAppService -{ - public virtual async Task> GetAllListAsync() - { - return await RequestAsync>(nameof(GetAllListAsync)); - } - - public virtual async Task> GetListAsync(GetIdentityRolesInput input) - { - return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue - { - { typeof(GetIdentityRolesInput), input } - }); - } - - public virtual async Task GetAsync(Guid id) - { - return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id } - }); - } - - public virtual async Task CreateAsync(IdentityRoleCreateDto input) - { - return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue - { - { typeof(IdentityRoleCreateDto), input } - }); - } - - public virtual async Task UpdateAsync(Guid id, IdentityRoleUpdateDto input) - { - return await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id }, - { typeof(IdentityRoleUpdateDto), input } - }); - } - - public virtual async Task DeleteAsync(Guid id) - { - await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id } - }); - } -} diff --git a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.cs b/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.cs deleted file mode 100644 index 6e42400a96..0000000000 --- a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityRoleClientProxy.cs +++ /dev/null @@ -1,7 +0,0 @@ -// This file is part of IdentityRoleClientProxy, you can customize it here -// ReSharper disable once CheckNamespace -namespace Volo.Abp.Identity; - -public partial class IdentityRoleClientProxy -{ -} diff --git a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.Generated.cs b/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.Generated.cs deleted file mode 100644 index b6e18e1e0f..0000000000 --- a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.Generated.cs +++ /dev/null @@ -1,98 +0,0 @@ -// This file is automatically generated by ABP framework to use MVC Controllers from CSharp -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; -using Volo.Abp.Identity; - -// ReSharper disable once CheckNamespace -namespace Volo.Abp.Identity; - -[Dependency(ReplaceServices = true)] -[ExposeServices(typeof(IIdentityUserAppService), typeof(IdentityUserClientProxy))] -public partial class IdentityUserClientProxy : ClientProxyBase, IIdentityUserAppService -{ - public virtual async Task GetAsync(Guid id) - { - return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id } - }); - } - - public virtual async Task> GetListAsync(GetIdentityUsersInput input) - { - return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue - { - { typeof(GetIdentityUsersInput), input } - }); - } - - public virtual async Task CreateAsync(IdentityUserCreateDto input) - { - return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue - { - { typeof(IdentityUserCreateDto), input } - }); - } - - public virtual async Task UpdateAsync(Guid id, IdentityUserUpdateDto input) - { - return await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id }, - { typeof(IdentityUserUpdateDto), input } - }); - } - - public virtual async Task DeleteAsync(Guid id) - { - await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id } - }); - } - - public virtual async Task> GetRolesAsync(Guid id) - { - return await RequestAsync>(nameof(GetRolesAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id } - }); - } - - public virtual async Task> GetAssignableRolesAsync() - { - return await RequestAsync>(nameof(GetAssignableRolesAsync)); - } - - public virtual async Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input) - { - await RequestAsync(nameof(UpdateRolesAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id }, - { typeof(IdentityUserUpdateRolesDto), input } - }); - } - - public virtual async Task FindByUsernameAsync(string userName) - { - return await RequestAsync(nameof(FindByUsernameAsync), new ClientProxyRequestTypeValue - { - { typeof(string), userName } - }); - } - - public virtual async Task FindByEmailAsync(string email) - { - return await RequestAsync(nameof(FindByEmailAsync), new ClientProxyRequestTypeValue - { - { typeof(string), email } - }); - } -} diff --git a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.cs b/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.cs deleted file mode 100644 index 8c40a7c313..0000000000 --- a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserClientProxy.cs +++ /dev/null @@ -1,7 +0,0 @@ -// This file is part of IdentityUserClientProxy, you can customize it here -// ReSharper disable once CheckNamespace -namespace Volo.Abp.Identity; - -public partial class IdentityUserClientProxy -{ -} diff --git a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.Generated.cs b/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.Generated.cs deleted file mode 100644 index effdd5ef51..0000000000 --- a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.Generated.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is automatically generated by ABP framework to use MVC Controllers from CSharp -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; -using Volo.Abp.Identity; -using Volo.Abp.Users; - -// ReSharper disable once CheckNamespace -namespace Volo.Abp.Identity; - -[Dependency(ReplaceServices = true)] -[ExposeServices(typeof(IIdentityUserLookupAppService), typeof(IdentityUserLookupClientProxy))] -public partial class IdentityUserLookupClientProxy : ClientProxyBase, IIdentityUserLookupAppService -{ - public virtual async Task FindByIdAsync(Guid id) - { - return await RequestAsync(nameof(FindByIdAsync), new ClientProxyRequestTypeValue - { - { typeof(Guid), id } - }); - } - - public virtual async Task FindByUserNameAsync(string userName) - { - return await RequestAsync(nameof(FindByUserNameAsync), new ClientProxyRequestTypeValue - { - { typeof(string), userName } - }); - } - - public virtual async Task> SearchAsync(UserLookupSearchInputDto input) - { - return await RequestAsync>(nameof(SearchAsync), new ClientProxyRequestTypeValue - { - { typeof(UserLookupSearchInputDto), input } - }); - } - - public virtual async Task GetCountAsync(UserLookupCountInputDto input) - { - return await RequestAsync(nameof(GetCountAsync), new ClientProxyRequestTypeValue - { - { typeof(UserLookupCountInputDto), input } - }); - } -} diff --git a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.cs b/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.cs deleted file mode 100644 index 3d54f2d1bb..0000000000 --- a/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/Volo/Abp/Identity/IdentityUserLookupClientProxy.cs +++ /dev/null @@ -1,7 +0,0 @@ -// This file is part of IdentityUserLookupClientProxy, you can customize it here -// ReSharper disable once CheckNamespace -namespace Volo.Abp.Identity; - -public partial class IdentityUserLookupClientProxy -{ -}