Browse Source

Update Client Proxies

pull/17925/head
Enis Necipoglu 2 years ago
parent
commit
a2fcff32b5
No known key found for this signature in database GPG Key ID: 1EC55E13241E1680
  1. 24
      modules/cms-kit/README.md
  2. 4
      modules/cms-kit/src/Volo.CmsKit.Admin.HttpApi.Client/ClientProxies/cms-kit-admin-generate-proxy.json
  3. 28
      modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/Blogs/BlogFeatureClientProxy.Generated.cs
  4. 7
      modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/Blogs/BlogFeatureClientProxy.cs
  5. 28
      modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/MediaDescriptors/MediaDescriptorClientProxy.Generated.cs
  6. 7
      modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/MediaDescriptors/MediaDescriptorClientProxy.cs
  7. 54
      modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/cms-kit-common-generate-proxy.json
  8. 8
      modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/Volo/CmsKit/Public/Blogs/BlogPostPublicClientProxy.Generated.cs
  9. 66
      modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/cms-kit-generate-proxy.json

24
modules/cms-kit/README.md

@ -0,0 +1,24 @@
# CMS Kit
## Updating Client Proxies
This project have 3 types of client proxies. Before updating client proxies, make sure `Volo.CmsKit.Web.Unified` project is running.
Then you can update Client proxies in 3 different projects. Execute the following commands in the directory of the each project.
- CMS Kit Public (**Volo.CmsKit.Public.HttpApi.Client**)
```bash
abp generate-proxy -t csharp -url https://localhost:44349 -m cms-kit --without-contracts
```
- CMS Kit Common (**Volo.CmsKit.Common.HttpApi.Client**)
```bash
abp generate-proxy -t csharp -url https://localhost:44349 -m cms-kit-common --without-contracts
```
- CMS Kit Admin (**Volo.CmsKit.Admin.HttpApi.Client**)
```bash
abp generate-proxy -t csharp -url https://localhost:44349 -m cms-kit-admin --without-contracts
```

4
modules/cms-kit/src/Volo.CmsKit.Admin.HttpApi.Client/ClientProxies/cms-kit-admin-generate-proxy.json

@ -2873,8 +2873,8 @@
"nameOnMethod": "input",
"name": "Status",
"jsonName": null,
"type": "Volo.CmsKit.Blogs.BlogPostStatus?",
"typeSimple": "Volo.CmsKit.Blogs.BlogPostStatus?",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,

28
modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/Blogs/BlogFeatureClientProxy.Generated.cs

@ -0,0 +1,28 @@
// 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.CmsKit.Blogs;
// ReSharper disable once CheckNamespace
namespace Volo.CmsKit.Blogs;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IBlogFeatureAppService), typeof(BlogFeatureClientProxy))]
public partial class BlogFeatureClientProxy : ClientProxyBase<IBlogFeatureAppService>, IBlogFeatureAppService
{
public virtual async Task<BlogFeatureDto> GetOrDefaultAsync(Guid blogId, string featureName)
{
return await RequestAsync<BlogFeatureDto>(nameof(GetOrDefaultAsync), new ClientProxyRequestTypeValue
{
{ typeof(Guid), blogId },
{ typeof(string), featureName }
});
}
}

7
modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/Blogs/BlogFeatureClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of BlogFeatureClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace Volo.CmsKit.Blogs;
public partial class BlogFeatureClientProxy
{
}

28
modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/MediaDescriptors/MediaDescriptorClientProxy.Generated.cs

@ -0,0 +1,28 @@
// 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.Content;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
using Volo.CmsKit.MediaDescriptors;
// ReSharper disable once CheckNamespace
namespace Volo.CmsKit.MediaDescriptors;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IMediaDescriptorAppService), typeof(MediaDescriptorClientProxy))]
public partial class MediaDescriptorClientProxy : ClientProxyBase<IMediaDescriptorAppService>, IMediaDescriptorAppService
{
public virtual async Task<RemoteStreamContent> DownloadAsync(Guid id)
{
return await RequestAsync<RemoteStreamContent>(nameof(DownloadAsync), new ClientProxyRequestTypeValue
{
{ typeof(Guid), id }
});
}
}

7
modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/Volo/CmsKit/MediaDescriptors/MediaDescriptorClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of MediaDescriptorClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace Volo.CmsKit.MediaDescriptors;
public partial class MediaDescriptorClientProxy
{
}

54
modules/cms-kit/src/Volo.CmsKit.Common.HttpApi.Client/ClientProxies/cms-kit-common-generate-proxy.json

@ -8,11 +8,32 @@
"controllerName": "MediaDescriptor",
"controllerGroupName": "MediaDescriptor",
"isRemoteService": true,
"isIntegrationService": false,
"apiVersion": null,
"type": "Volo.CmsKit.MediaDescriptors.MediaDescriptorController",
"interfaces": [
{
"type": "Volo.CmsKit.MediaDescriptors.IMediaDescriptorAppService"
"type": "Volo.CmsKit.MediaDescriptors.IMediaDescriptorAppService",
"name": "IMediaDescriptorAppService",
"methods": [
{
"name": "DownloadAsync",
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"returnValue": {
"type": "Volo.Abp.Content.RemoteStreamContent",
"typeSimple": "Volo.Abp.Content.RemoteStreamContent"
}
}
]
}
],
"actions": {
@ -59,11 +80,40 @@
"controllerName": "BlogFeature",
"controllerGroupName": "BlogFeature",
"isRemoteService": true,
"isIntegrationService": false,
"apiVersion": null,
"type": "Volo.CmsKit.Blogs.BlogFeatureController",
"interfaces": [
{
"type": "Volo.CmsKit.Blogs.IBlogFeatureAppService"
"type": "Volo.CmsKit.Blogs.IBlogFeatureAppService",
"name": "IBlogFeatureAppService",
"methods": [
{
"name": "GetOrDefaultAsync",
"parametersOnMethod": [
{
"name": "blogId",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "featureName",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"returnValue": {
"type": "Volo.CmsKit.Blogs.BlogFeatureDto",
"typeSimple": "Volo.CmsKit.Blogs.BlogFeatureDto"
}
}
]
}
],
"actions": {

8
modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/Volo/CmsKit/Public/Blogs/BlogPostPublicClientProxy.Generated.cs

@ -60,4 +60,12 @@ public partial class BlogPostPublicClientProxy : ClientProxyBase<IBlogPostPublic
{ typeof(Guid), id }
});
}
public virtual async Task<string> GetTagNameAsync(Guid tagId)
{
return await RequestAsync<string>(nameof(GetTagNameAsync), new ClientProxyRequestTypeValue
{
{ typeof(Guid), tagId }
});
}
}

66
modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/cms-kit-generate-proxy.json

@ -1512,6 +1512,23 @@
"type": "System.Void",
"typeSimple": "System.Void"
}
},
{
"name": "GetTagNameAsync",
"parametersOnMethod": [
{
"name": "tagId",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"returnValue": {
"type": "System.String",
"typeSimple": "string"
}
}
]
}
@ -1825,6 +1842,55 @@
},
"allowAnonymous": null,
"implementFrom": "Volo.CmsKit.Public.Blogs.IBlogPostPublicAppService"
},
"GetTagNameAsyncByTagId": {
"uniqueName": "GetTagNameAsyncByTagId",
"name": "GetTagNameAsync",
"httpMethod": "GET",
"url": "api/cms-kit-public/blog-posts/tags/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "tagId",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "tagId",
"name": "tagId",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": null,
"typeSimple": null,
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.String",
"typeSimple": "string"
},
"allowAnonymous": null,
"implementFrom": "Volo.CmsKit.Public.Blogs.IBlogPostPublicAppService"
}
}
}

Loading…
Cancel
Save