8 changed files with 538 additions and 9 deletions
@ -0,0 +1,67 @@ |
|||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
|
|||
using LINGYUN.Abp.Gdpr; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Content; |
|||
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.Gdpr; |
|||
|
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IGdprRequestAppService), typeof(GdprRequestClientProxy))] |
|||
public partial class GdprRequestClientProxy : ClientProxyBase<IGdprRequestAppService>, IGdprRequestAppService |
|||
{ |
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid), id } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task DeletePersonalAccountAsync() |
|||
{ |
|||
await RequestAsync(nameof(DeletePersonalAccountAsync)); |
|||
} |
|||
|
|||
public virtual async Task DeletePersonalDataAsync() |
|||
{ |
|||
await RequestAsync(nameof(DeletePersonalDataAsync)); |
|||
} |
|||
|
|||
public virtual async Task<GdprRequestDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<GdprRequestDto>(nameof(GetAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid), id } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<GdprRequestDto>> GetListAsync(GdprRequestGetListInput input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<GdprRequestDto>>(nameof(GetListAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(GdprRequestGetListInput), input } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task<IRemoteStreamContent> DownloadPersonalDataAsync(Guid requestId) |
|||
{ |
|||
return await RequestAsync<IRemoteStreamContent>(nameof(DownloadPersonalDataAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid), requestId } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task PreparePersonalDataAsync() |
|||
{ |
|||
await RequestAsync(nameof(PreparePersonalDataAsync)); |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
// This file is part of GdprRequestClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace LINGYUN.Abp.Gdpr; |
|||
|
|||
public partial class GdprRequestClientProxy |
|||
{ |
|||
} |
|||
@ -0,0 +1,362 @@ |
|||
{ |
|||
"modules": { |
|||
"gdpr": { |
|||
"rootPath": "gdpr", |
|||
"remoteServiceName": "Gdpr", |
|||
"controllers": { |
|||
"LINGYUN.Abp.Gdpr.GdprRequestController": { |
|||
"controllerName": "GdprRequest", |
|||
"controllerGroupName": "GdprRequest", |
|||
"isRemoteService": true, |
|||
"isIntegrationService": false, |
|||
"apiVersion": null, |
|||
"type": "LINGYUN.Abp.Gdpr.GdprRequestController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "LINGYUN.Abp.Gdpr.IGdprRequestAppService", |
|||
"name": "IGdprRequestAppService", |
|||
"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.Gdpr.GdprRequestDto", |
|||
"typeSimple": "LINGYUN.Abp.Gdpr.GdprRequestDto" |
|||
} |
|||
}, |
|||
{ |
|||
"name": "GetListAsync", |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "LINGYUN.Abp.Gdpr.GdprRequestGetListInput, LINGYUN.Abp.Gdpr.Application.Contracts", |
|||
"type": "LINGYUN.Abp.Gdpr.GdprRequestGetListInput", |
|||
"typeSimple": "LINGYUN.Abp.Gdpr.GdprRequestGetListInput", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Application.Dtos.PagedResultDto<LINGYUN.Abp.Gdpr.GdprRequestDto>", |
|||
"typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto<LINGYUN.Abp.Gdpr.GdprRequestDto>" |
|||
} |
|||
}, |
|||
{ |
|||
"name": "DownloadPersonalDataAsync", |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "requestId", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Content.IRemoteStreamContent", |
|||
"typeSimple": "Volo.Abp.Content.IRemoteStreamContent" |
|||
} |
|||
}, |
|||
{ |
|||
"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": "PreparePersonalDataAsync", |
|||
"parametersOnMethod": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
} |
|||
}, |
|||
{ |
|||
"name": "DeletePersonalDataAsync", |
|||
"parametersOnMethod": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
} |
|||
}, |
|||
{ |
|||
"name": "DeletePersonalAccountAsync", |
|||
"parametersOnMethod": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
], |
|||
"actions": { |
|||
"DeleteAsyncById": { |
|||
"uniqueName": "DeleteAsyncById", |
|||
"name": "DeleteAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/gdpr/requests/{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.Gdpr.IGdprRequestAppService" |
|||
}, |
|||
"DeletePersonalAccountAsync": { |
|||
"uniqueName": "DeletePersonalAccountAsync", |
|||
"name": "DeletePersonalAccountAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/gdpr/requests/personal-account", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [], |
|||
"parameters": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
}, |
|||
"allowAnonymous": false, |
|||
"implementFrom": "LINGYUN.Abp.Gdpr.IGdprRequestAppService" |
|||
}, |
|||
"DeletePersonalDataAsync": { |
|||
"uniqueName": "DeletePersonalDataAsync", |
|||
"name": "DeletePersonalDataAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/gdpr/requests/personal-data", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [], |
|||
"parameters": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
}, |
|||
"allowAnonymous": false, |
|||
"implementFrom": "LINGYUN.Abp.Gdpr.IGdprRequestAppService" |
|||
}, |
|||
"GetAsyncById": { |
|||
"uniqueName": "GetAsyncById", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/gdpr/requests/{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.Gdpr.GdprRequestDto", |
|||
"typeSimple": "LINGYUN.Abp.Gdpr.GdprRequestDto" |
|||
}, |
|||
"allowAnonymous": false, |
|||
"implementFrom": "LINGYUN.Abp.Gdpr.IGdprRequestAppService" |
|||
}, |
|||
"GetListAsyncByInput": { |
|||
"uniqueName": "GetListAsyncByInput", |
|||
"name": "GetListAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/gdpr/requests", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "LINGYUN.Abp.Gdpr.GdprRequestGetListInput, LINGYUN.Abp.Gdpr.Application.Contracts", |
|||
"type": "LINGYUN.Abp.Gdpr.GdprRequestGetListInput", |
|||
"typeSimple": "LINGYUN.Abp.Gdpr.GdprRequestGetListInput", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "CreationTime", |
|||
"jsonName": null, |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "ReadyTime", |
|||
"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<LINGYUN.Abp.Gdpr.GdprRequestDto>", |
|||
"typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto<LINGYUN.Abp.Gdpr.GdprRequestDto>" |
|||
}, |
|||
"allowAnonymous": false, |
|||
"implementFrom": "LINGYUN.Abp.Gdpr.IGdprRequestAppService" |
|||
}, |
|||
"DownloadPersonalDataAsyncByRequestId": { |
|||
"uniqueName": "DownloadPersonalDataAsyncByRequestId", |
|||
"name": "DownloadPersonalDataAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/gdpr/requests/personal-data/download/{requestId}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "requestId", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "requestId", |
|||
"name": "requestId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Content.IRemoteStreamContent", |
|||
"typeSimple": "Volo.Abp.Content.IRemoteStreamContent" |
|||
}, |
|||
"allowAnonymous": false, |
|||
"implementFrom": "LINGYUN.Abp.Gdpr.IGdprRequestAppService" |
|||
}, |
|||
"PreparePersonalDataAsync": { |
|||
"uniqueName": "PreparePersonalDataAsync", |
|||
"name": "PreparePersonalDataAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/gdpr/requests/personal-data/prepare", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [], |
|||
"parameters": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
}, |
|||
"allowAnonymous": false, |
|||
"implementFrom": "LINGYUN.Abp.Gdpr.IGdprRequestAppService" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"types": {} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait ContinueOnCapturedContext="false" /> |
|||
</Weavers> |
|||
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
|||
<xs:element name="Weavers"> |
|||
<xs:complexType> |
|||
<xs:all> |
|||
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
|||
<xs:complexType> |
|||
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:all> |
|||
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
|||
<xs:annotation> |
|||
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:schema> |
|||
@ -0,0 +1,32 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks> |
|||
<AssemblyName>LINGYUN.Abp.Gdpr.HttpApi.Client</AssemblyName> |
|||
<PackageId>LINGYUN.Abp.Gdpr.HttpApi.Client</PackageId> |
|||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
|||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
|||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
|||
<RootNamespace /> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<None Remove="ClientProxies\gdpr-generate-proxy.json" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<EmbeddedResource Include="ClientProxies\gdpr-generate-proxy.json" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Volo.Abp.Http.Client" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\LINGYUN.Abp.Gdpr.Application.Contracts\LINGYUN.Abp.Gdpr.Application.Contracts.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,24 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.VirtualFileSystem; |
|||
|
|||
namespace LINGYUN.Abp.Gdpr; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpGdprApplicationContractsModule), |
|||
typeof(AbpHttpClientModule))] |
|||
public class AbpGdprHttpApiClientModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddStaticHttpClientProxies( |
|||
typeof(AbpGdprApplicationContractsModule).Assembly, |
|||
GdprRemoteServiceConsts.RemoteServiceName); |
|||
|
|||
Configure<AbpVirtualFileSystemOptions>(options => |
|||
{ |
|||
options.FileSets.AddEmbedded<AbpGdprHttpApiClientModule>(); |
|||
}); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue