Browse Source

Update generic csharp proxy for public

pull/13499/head
malik masis 4 years ago
parent
commit
e90bd47ce0
  1. 8
      modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/BlogPostPublicClientProxy.Generated.cs
  2. 63
      modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/cms-kit-generate-proxy.json

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

@ -14,18 +14,18 @@ namespace Volo.CmsKit.Public.Blogs.ClientProxies;
[ExposeServices(typeof(IBlogPostPublicAppService), typeof(BlogPostPublicClientProxy))] [ExposeServices(typeof(IBlogPostPublicAppService), typeof(BlogPostPublicClientProxy))]
public partial class BlogPostPublicClientProxy : ClientProxyBase<IBlogPostPublicAppService>, IBlogPostPublicAppService public partial class BlogPostPublicClientProxy : ClientProxyBase<IBlogPostPublicAppService>, IBlogPostPublicAppService
{ {
public virtual async Task<BlogPostPublicDto> GetAsync(string blogSlug, string blogPostSlug) public virtual async Task<BlogPostCommonDto> GetAsync(string blogSlug, string blogPostSlug)
{ {
return await RequestAsync<BlogPostPublicDto>(nameof(GetAsync), new ClientProxyRequestTypeValue return await RequestAsync<BlogPostCommonDto>(nameof(GetAsync), new ClientProxyRequestTypeValue
{ {
{ typeof(string), blogSlug }, { typeof(string), blogSlug },
{ typeof(string), blogPostSlug } { typeof(string), blogPostSlug }
}); });
} }
public virtual async Task<PagedResultDto<BlogPostPublicDto>> GetListAsync(string blogSlug, BlogPostGetListInput input) public virtual async Task<PagedResultDto<BlogPostCommonDto>> GetListAsync(string blogSlug, BlogPostGetListInput input)
{ {
return await RequestAsync<PagedResultDto<BlogPostPublicDto>>(nameof(GetListAsync), new ClientProxyRequestTypeValue return await RequestAsync<PagedResultDto<BlogPostCommonDto>>(nameof(GetListAsync), new ClientProxyRequestTypeValue
{ {
{ typeof(string), blogSlug }, { typeof(string), blogSlug },
{ typeof(BlogPostGetListInput), input } { typeof(BlogPostGetListInput), input }

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

@ -505,57 +505,6 @@
} }
} }
}, },
"Volo.CmsKit.Public.Polls.PollViewComponentController": {
"controllerName": "PollViewComponent",
"controllerGroupName": "PollViewComponent",
"isRemoteService": true,
"apiVersion": null,
"type": "Volo.CmsKit.Public.Polls.PollViewComponentController",
"interfaces": [
{
"type": "Volo.CmsKit.Public.Polls.IPollViewComponentAppService"
}
],
"actions": {
"ParseAsyncByContent": {
"uniqueName": "ParseAsyncByContent",
"name": "ParseAsync",
"httpMethod": "GET",
"url": "api/cms-kit-public/polls/{content}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "content",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "content",
"name": "content",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Collections.Generic.List<Volo.CmsKit.Polls.ContentFragment>",
"typeSimple": "[Volo.CmsKit.Polls.ContentFragment]"
},
"allowAnonymous": null,
"implementFrom": "Volo.CmsKit.Public.Polls.IPollViewComponentAppService"
}
}
},
"Volo.CmsKit.Public.Pages.PagesPublicController": { "Volo.CmsKit.Public.Pages.PagesPublicController": {
"controllerName": "PagesPublic", "controllerName": "PagesPublic",
"controllerGroupName": "PagesPublic", "controllerGroupName": "PagesPublic",
@ -599,8 +548,8 @@
} }
], ],
"returnValue": { "returnValue": {
"type": "Volo.CmsKit.Public.Pages.PageDto", "type": "Volo.CmsKit.Contents.PageDto",
"typeSimple": "Volo.CmsKit.Public.Pages.PageDto" "typeSimple": "Volo.CmsKit.Contents.PageDto"
}, },
"allowAnonymous": null, "allowAnonymous": null,
"implementFrom": "Volo.CmsKit.Public.Pages.IPagePublicAppService" "implementFrom": "Volo.CmsKit.Public.Pages.IPagePublicAppService"
@ -985,8 +934,8 @@
} }
], ],
"returnValue": { "returnValue": {
"type": "Volo.CmsKit.Public.Blogs.BlogPostPublicDto", "type": "Volo.CmsKit.Contents.BlogPostCommonDto",
"typeSimple": "Volo.CmsKit.Public.Blogs.BlogPostPublicDto" "typeSimple": "Volo.CmsKit.Contents.BlogPostCommonDto"
}, },
"allowAnonymous": null, "allowAnonymous": null,
"implementFrom": "Volo.CmsKit.Public.Blogs.IBlogPostPublicAppService" "implementFrom": "Volo.CmsKit.Public.Blogs.IBlogPostPublicAppService"
@ -1090,8 +1039,8 @@
} }
], ],
"returnValue": { "returnValue": {
"type": "Volo.Abp.Application.Dtos.PagedResultDto<Volo.CmsKit.Public.Blogs.BlogPostPublicDto>", "type": "Volo.Abp.Application.Dtos.PagedResultDto<Volo.CmsKit.Contents.BlogPostCommonDto>",
"typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto<Volo.CmsKit.Public.Blogs.BlogPostPublicDto>" "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto<Volo.CmsKit.Contents.BlogPostCommonDto>"
}, },
"allowAnonymous": null, "allowAnonymous": null,
"implementFrom": "Volo.CmsKit.Public.Blogs.IBlogPostPublicAppService" "implementFrom": "Volo.CmsKit.Public.Blogs.IBlogPostPublicAppService"

Loading…
Cancel
Save