-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use static proxying for identity module.
- Loading branch information
Showing
13 changed files
with
1,245 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...es/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/IdentityRoleClientProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.DependencyInjection; | ||
using Volo.Abp.Application.Dtos; | ||
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.HttpApi.Client.ClientProxies | ||
{ | ||
[Dependency(ReplaceServices = true)] | ||
[ExposeServices(typeof(IIdentityRoleAppService))] | ||
public partial class IdentityRoleClientProxy : ClientProxyBase<IIdentityRoleAppService>, IIdentityRoleAppService | ||
{ | ||
public virtual async Task<ListResultDto<IdentityRoleDto>> GetAllListAsync() | ||
{ | ||
return await RequestAsync<ListResultDto<IdentityRoleDto>>(nameof(GetAllListAsync)); | ||
} | ||
|
||
public virtual async Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRolesInput input) | ||
{ | ||
return await RequestAsync<PagedResultDto<IdentityRoleDto>>(nameof(GetListAsync), input); | ||
} | ||
|
||
public virtual async Task<IdentityRoleDto> GetAsync(Guid id) | ||
{ | ||
return await RequestAsync<IdentityRoleDto>(nameof(GetAsync), id); | ||
} | ||
|
||
public virtual async Task<IdentityRoleDto> CreateAsync(IdentityRoleCreateDto input) | ||
{ | ||
return await RequestAsync<IdentityRoleDto>(nameof(CreateAsync), input); | ||
} | ||
|
||
public virtual async Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpdateDto input) | ||
{ | ||
return await RequestAsync<IdentityRoleDto>(nameof(UpdateAsync), id, input); | ||
} | ||
|
||
public virtual async Task DeleteAsync(Guid id) | ||
{ | ||
await RequestAsync(nameof(DeleteAsync), id); | ||
} | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/IdentityRoleClientProxy.partial.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file is part of IdentityRoleClientProxy, you can customize it here | ||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
public partial class IdentityRoleClientProxy | ||
{ | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...es/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/IdentityUserClientProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.DependencyInjection; | ||
using Volo.Abp.Application.Dtos; | ||
using Volo.Abp.Http.Client; | ||
using Volo.Abp.Http.Client.ClientProxying; | ||
using Volo.Abp.Http.Modeling; | ||
using Volo.Abp.Identity; | ||
|
||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
[Dependency(ReplaceServices = true)] | ||
[ExposeServices(typeof(IIdentityUserAppService))] | ||
public partial class IdentityUserClientProxy : ClientProxyBase<IIdentityUserAppService>, IIdentityUserAppService | ||
{ | ||
public virtual async Task<IdentityUserDto> GetAsync(Guid id) | ||
{ | ||
return await RequestAsync<IdentityUserDto>(nameof(GetAsync), id); | ||
} | ||
|
||
public virtual async Task<PagedResultDto<IdentityUserDto>> GetListAsync(GetIdentityUsersInput input) | ||
{ | ||
return await RequestAsync<PagedResultDto<IdentityUserDto>>(nameof(GetListAsync), input); | ||
} | ||
|
||
public virtual async Task<IdentityUserDto> CreateAsync(IdentityUserCreateDto input) | ||
{ | ||
return await RequestAsync<IdentityUserDto>(nameof(CreateAsync), input); | ||
} | ||
|
||
public virtual async Task<IdentityUserDto> UpdateAsync(Guid id, IdentityUserUpdateDto input) | ||
{ | ||
return await RequestAsync<IdentityUserDto>(nameof(UpdateAsync), id, input); | ||
} | ||
|
||
public virtual async Task DeleteAsync(Guid id) | ||
{ | ||
await RequestAsync(nameof(DeleteAsync), id); | ||
} | ||
|
||
public virtual async Task<ListResultDto<IdentityRoleDto>> GetRolesAsync(Guid id) | ||
{ | ||
return await RequestAsync<ListResultDto<IdentityRoleDto>>(nameof(GetRolesAsync), id); | ||
} | ||
|
||
public virtual async Task<ListResultDto<IdentityRoleDto>> GetAssignableRolesAsync() | ||
{ | ||
return await RequestAsync<ListResultDto<IdentityRoleDto>>(nameof(GetAssignableRolesAsync)); | ||
} | ||
|
||
public virtual async Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input) | ||
{ | ||
await RequestAsync(nameof(UpdateRolesAsync), id, input); | ||
} | ||
|
||
public virtual async Task<IdentityUserDto> FindByUsernameAsync(string userName) | ||
{ | ||
return await RequestAsync<IdentityUserDto>(nameof(FindByUsernameAsync), userName); | ||
} | ||
|
||
public virtual async Task<IdentityUserDto> FindByEmailAsync(string email) | ||
{ | ||
return await RequestAsync<IdentityUserDto>(nameof(FindByEmailAsync), email); | ||
} | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/IdentityUserClientProxy.partial.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file is part of IdentityUserClientProxy, you can customize it here | ||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
public partial class IdentityUserClientProxy | ||
{ | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ntity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/IdentityUserLookupClientProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.DependencyInjection; | ||
using Volo.Abp.Application.Dtos; | ||
using Volo.Abp.Http.Client; | ||
using Volo.Abp.Http.Client.ClientProxying; | ||
using Volo.Abp.Http.Modeling; | ||
using Volo.Abp.Identity; | ||
using Volo.Abp.Users; | ||
|
||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
[Dependency(ReplaceServices = true)] | ||
[ExposeServices(typeof(IIdentityUserLookupAppService))] | ||
public partial class IdentityUserLookupClientProxy : ClientProxyBase<IIdentityUserLookupAppService>, IIdentityUserLookupAppService | ||
{ | ||
public virtual async Task<UserData> FindByIdAsync(Guid id) | ||
{ | ||
return await RequestAsync<UserData>(nameof(FindByIdAsync), id); | ||
} | ||
|
||
public virtual async Task<UserData> FindByUserNameAsync(string userName) | ||
{ | ||
return await RequestAsync<UserData>(nameof(FindByUserNameAsync), userName); | ||
} | ||
|
||
public virtual async Task<ListResultDto<UserData>> SearchAsync(UserLookupSearchInputDto input) | ||
{ | ||
return await RequestAsync<ListResultDto<UserData>>(nameof(SearchAsync), input); | ||
} | ||
|
||
public virtual async Task<long> GetCountAsync(UserLookupCountInputDto input) | ||
{ | ||
return await RequestAsync<long>(nameof(GetCountAsync), input); | ||
} | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...c/Volo.Abp.Identity.HttpApi.Client/ClientProxies/IdentityUserLookupClientProxy.partial.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file is part of IdentityUserLookupClientProxy, you can customize it here | ||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
public partial class IdentityUserLookupClientProxy | ||
{ | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
modules/identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/ProfileClientProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.DependencyInjection; | ||
using Volo.Abp.Application.Dtos; | ||
using Volo.Abp.Http.Client; | ||
using Volo.Abp.Http.Client.ClientProxying; | ||
using Volo.Abp.Http.Modeling; | ||
using Volo.Abp.Identity; | ||
|
||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
[Dependency(ReplaceServices = true)] | ||
[ExposeServices(typeof(IProfileAppService))] | ||
public partial class ProfileClientProxy : ClientProxyBase<IProfileAppService>, IProfileAppService | ||
{ | ||
public virtual async Task<ProfileDto> GetAsync() | ||
{ | ||
return await RequestAsync<ProfileDto>(nameof(GetAsync)); | ||
} | ||
|
||
public virtual async Task<ProfileDto> UpdateAsync(UpdateProfileDto input) | ||
{ | ||
return await RequestAsync<ProfileDto>(nameof(UpdateAsync), input); | ||
} | ||
|
||
public virtual async Task ChangePasswordAsync(ChangePasswordInput input) | ||
{ | ||
await RequestAsync(nameof(ChangePasswordAsync), input); | ||
} | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...identity/src/Volo.Abp.Identity.HttpApi.Client/ClientProxies/ProfileClientProxy.partial.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file is part of ProfileClientProxy, you can customize it here | ||
namespace Volo.Abp.Identity.HttpApi.Client.ClientProxies | ||
{ | ||
public partial class ProfileClientProxy | ||
{ | ||
} | ||
} |
Oops, something went wrong.