mirror of https://github.com/abpframework/abp.git
137 changed files with 14119 additions and 172 deletions
@ -1,15 +1,17 @@ |
|||
using System.Net.Http; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Client.DynamicProxying; |
|||
using Volo.Abp.Http.Client.Proxying; |
|||
|
|||
namespace Volo.Abp.AspNetCore.TestBase.DynamicProxying |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
public class AspNetCoreTestDynamicProxyHttpClientFactory : IDynamicProxyHttpClientFactory, ITransientDependency |
|||
public class AspNetCoreTestProxyHttpClientFactory : IProxyHttpClientFactory, ITransientDependency |
|||
{ |
|||
private readonly ITestServerAccessor _testServerAccessor; |
|||
|
|||
public AspNetCoreTestDynamicProxyHttpClientFactory( |
|||
public AspNetCoreTestProxyHttpClientFactory( |
|||
ITestServerAccessor testServerAccessor) |
|||
{ |
|||
_testServerAccessor = testServerAccessor; |
|||
@ -1,7 +1,7 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.Cli.ServiceProxy |
|||
namespace Volo.Abp.Cli.ServiceProxying |
|||
{ |
|||
public class AbpCliServiceProxyOptions |
|||
{ |
|||
@ -1,7 +1,7 @@ |
|||
using System.Collections.Generic; |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.Cli.ServiceProxy |
|||
namespace Volo.Abp.Cli.ServiceProxying |
|||
{ |
|||
public class GenerateProxyArgs |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Cli.ServiceProxy |
|||
namespace Volo.Abp.Cli.ServiceProxying |
|||
{ |
|||
public interface IServiceProxyGenerator |
|||
{ |
|||
@ -0,0 +1,8 @@ |
|||
{ |
|||
"profiles": { |
|||
"Volo.Abp.Cli": { |
|||
"commandName": "Project", |
|||
"commandLineArgs": "generate-proxy -t csharp -m blogging -u https://localhost:40017 -wd C:\\Users\\liangshiwei\\Documents\\Code\\abp\\modules\\blogging\\src\\Volo.Blogging.HttpApi.Client" |
|||
} |
|||
} |
|||
} |
|||
@ -1,16 +1,17 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Http.Client.DynamicProxying; |
|||
using Volo.Abp.Http.Client.Proxying; |
|||
|
|||
namespace Volo.Abp.Http.Client |
|||
{ |
|||
public class AbpHttpClientOptions |
|||
{ |
|||
public Dictionary<Type, DynamicHttpClientProxyConfig> HttpClientProxies { get; set; } |
|||
public Dictionary<Type, HttpClientProxyConfig> HttpClientProxies { get; set; } |
|||
|
|||
public AbpHttpClientOptions() |
|||
{ |
|||
HttpClientProxies = new Dictionary<Type, DynamicHttpClientProxyConfig>(); |
|||
HttpClientProxies = new Dictionary<Type, HttpClientProxyConfig>(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,25 +1,25 @@ |
|||
using System.Net.Http; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.Http.Client.DynamicProxying |
|||
namespace Volo.Abp.Http.Client.Proxying |
|||
{ |
|||
public class DefaultDynamicProxyHttpClientFactory : IDynamicProxyHttpClientFactory, ITransientDependency |
|||
public class DefaultProxyHttpClientFactory : IProxyHttpClientFactory, ITransientDependency |
|||
{ |
|||
private readonly IHttpClientFactory _httpClientFactory; |
|||
|
|||
public DefaultDynamicProxyHttpClientFactory(IHttpClientFactory httpClientFactory) |
|||
public DefaultProxyHttpClientFactory(IHttpClientFactory httpClientFactory) |
|||
{ |
|||
_httpClientFactory = httpClientFactory; |
|||
} |
|||
|
|||
public HttpClient Create() |
|||
public HttpClient Create() |
|||
{ |
|||
return _httpClientFactory.CreateClient(); |
|||
} |
|||
|
|||
public HttpClient Create(string name) |
|||
public HttpClient Create(string name) |
|||
{ |
|||
return _httpClientFactory.CreateClient(name); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,17 +1,17 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Abp.Http.Client.DynamicProxying |
|||
namespace Volo.Abp.Http.Client.Proxying |
|||
{ |
|||
public class DynamicHttpClientProxyConfig |
|||
public class HttpClientProxyConfig |
|||
{ |
|||
public Type Type { get; } |
|||
|
|||
public string RemoteServiceName { get; } |
|||
|
|||
public DynamicHttpClientProxyConfig(Type type, string remoteServiceName) |
|||
public HttpClientProxyConfig(Type type, string remoteServiceName) |
|||
{ |
|||
Type = type; |
|||
RemoteServiceName = remoteServiceName; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,7 +1,7 @@ |
|||
using System.Net.Http; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Http.Client |
|||
namespace Volo.Abp.Http.Client.Proxying |
|||
{ |
|||
public interface IHttpProxyExecuter |
|||
{ |
|||
@ -1,11 +1,11 @@ |
|||
using System.Net.Http; |
|||
|
|||
namespace Volo.Abp.Http.Client.DynamicProxying |
|||
namespace Volo.Abp.Http.Client.Proxying |
|||
{ |
|||
public interface IDynamicProxyHttpClientFactory |
|||
public interface IProxyHttpClientFactory |
|||
{ |
|||
HttpClient Create(); |
|||
|
|||
HttpClient Create(string name); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Abp.Account; |
|||
using Volo.Abp.Identity; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Abp.Account.ClientProxies |
|||
{ |
|||
public partial class AccountClientProxy |
|||
{ |
|||
public virtual async Task<IdentityUserDto> RegisterAsync(RegisterDto input) |
|||
{ |
|||
return await RequestAsync<IdentityUserDto>(nameof(RegisterAsync), input); |
|||
} |
|||
|
|||
public virtual async Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input) |
|||
{ |
|||
await RequestAsync(nameof(SendPasswordResetCodeAsync), input); |
|||
} |
|||
|
|||
public virtual async Task ResetPasswordAsync(ResetPasswordDto input) |
|||
{ |
|||
await RequestAsync(nameof(ResetPasswordAsync), input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Abp.Account; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Abp.Account.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IAccountAppService), typeof(AccountClientProxy))] |
|||
public partial class AccountClientProxy : ClientProxyBase<IAccountAppService>, IAccountAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,229 @@ |
|||
{ |
|||
"modules": { |
|||
"account": { |
|||
"rootPath": "account", |
|||
"remoteServiceName": "AbpAccount", |
|||
"controllers": { |
|||
"Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController": { |
|||
"controllerName": "Account", |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController", |
|||
"interfaces": [], |
|||
"actions": { |
|||
"LoginByLogin": { |
|||
"uniqueName": "LoginByLogin", |
|||
"name": "Login", |
|||
"httpMethod": "POST", |
|||
"url": "api/account/login", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "login", |
|||
"typeAsString": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo, Volo.Abp.Account.Web", |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"typeSimple": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "login", |
|||
"name": "login", |
|||
"jsonName": null, |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"typeSimple": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.AbpLoginResult", |
|||
"typeSimple": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.AbpLoginResult" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController" |
|||
}, |
|||
"Logout": { |
|||
"uniqueName": "Logout", |
|||
"name": "Logout", |
|||
"httpMethod": "GET", |
|||
"url": "api/account/logout", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [], |
|||
"parameters": [], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController" |
|||
}, |
|||
"CheckPasswordByLogin": { |
|||
"uniqueName": "CheckPasswordByLogin", |
|||
"name": "CheckPassword", |
|||
"httpMethod": "POST", |
|||
"url": "api/account/check-password", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "login", |
|||
"typeAsString": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo, Volo.Abp.Account.Web", |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"typeSimple": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "login", |
|||
"name": "login", |
|||
"jsonName": null, |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"typeSimple": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.UserLoginInfo", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.AbpLoginResult", |
|||
"typeSimple": "Volo.Abp.Account.Web.Areas.Account.Controllers.Models.AbpLoginResult" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController" |
|||
} |
|||
} |
|||
}, |
|||
"Volo.Abp.Account.AccountController": { |
|||
"controllerName": "Account", |
|||
"type": "Volo.Abp.Account.AccountController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Abp.Account.IAccountAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"RegisterAsyncByInput": { |
|||
"uniqueName": "RegisterAsyncByInput", |
|||
"name": "RegisterAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/account/register", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Abp.Account.RegisterDto, Volo.Abp.Account.Application.Contracts", |
|||
"type": "Volo.Abp.Account.RegisterDto", |
|||
"typeSimple": "Volo.Abp.Account.RegisterDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Abp.Account.RegisterDto", |
|||
"typeSimple": "Volo.Abp.Account.RegisterDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Identity.IdentityUserDto", |
|||
"typeSimple": "Volo.Abp.Identity.IdentityUserDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Abp.Account.IAccountAppService" |
|||
}, |
|||
"SendPasswordResetCodeAsyncByInput": { |
|||
"uniqueName": "SendPasswordResetCodeAsyncByInput", |
|||
"name": "SendPasswordResetCodeAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/account/send-password-reset-code", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Abp.Account.SendPasswordResetCodeDto, Volo.Abp.Account.Application.Contracts", |
|||
"type": "Volo.Abp.Account.SendPasswordResetCodeDto", |
|||
"typeSimple": "Volo.Abp.Account.SendPasswordResetCodeDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Abp.Account.SendPasswordResetCodeDto", |
|||
"typeSimple": "Volo.Abp.Account.SendPasswordResetCodeDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Abp.Account.IAccountAppService" |
|||
}, |
|||
"ResetPasswordAsyncByInput": { |
|||
"uniqueName": "ResetPasswordAsyncByInput", |
|||
"name": "ResetPasswordAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/account/reset-password", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Abp.Account.ResetPasswordDto, Volo.Abp.Account.Application.Contracts", |
|||
"type": "Volo.Abp.Account.ResetPasswordDto", |
|||
"typeSimple": "Volo.Abp.Account.ResetPasswordDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Abp.Account.ResetPasswordDto", |
|||
"typeSimple": "Volo.Abp.Account.ResetPasswordDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "System.Void", |
|||
"typeSimple": "System.Void" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Abp.Account.IAccountAppService" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"types": {} |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Blogging.Admin.Blogs; |
|||
using Volo.Blogging.Blogs.Dtos; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.Admin.ClientProxies |
|||
{ |
|||
public partial class BlogManagementClientProxy |
|||
{ |
|||
public virtual async Task<ListResultDto<BlogDto>> GetListAsync() |
|||
{ |
|||
return await RequestAsync<ListResultDto<BlogDto>>(nameof(GetListAsync)); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> CreateAsync(CreateBlogDto input) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> UpdateAsync(Guid id, UpdateBlogDto input) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
public virtual async Task ClearCacheAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(ClearCacheAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Blogging.Admin.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.Admin.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogManagementAppService), typeof(BlogManagementClientProxy))] |
|||
public partial class BlogManagementClientProxy : ClientProxyBase<IBlogManagementAppService>, IBlogManagementAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,242 @@ |
|||
{ |
|||
"modules": { |
|||
"bloggingAdmin": { |
|||
"rootPath": "bloggingAdmin", |
|||
"remoteServiceName": "BloggingAdmin", |
|||
"controllers": { |
|||
"Volo.Blogging.Admin.BlogManagementController": { |
|||
"controllerName": "BlogManagement", |
|||
"type": "Volo.Blogging.Admin.BlogManagementController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetListAsync": { |
|||
"uniqueName": "GetListAsync", |
|||
"name": "GetListAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/blogs/admin", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [], |
|||
"parameters": [], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Blogs.Dtos.BlogDto>", |
|||
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Blogs.Dtos.BlogDto>" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
}, |
|||
"GetAsyncById": { |
|||
"uniqueName": "GetAsyncById", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/blogs/admin/{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": "Volo.Blogging.Blogs.Dtos.BlogDto", |
|||
"typeSimple": "Volo.Blogging.Blogs.Dtos.BlogDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
}, |
|||
"CreateAsyncByInput": { |
|||
"uniqueName": "CreateAsyncByInput", |
|||
"name": "CreateAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/blogging/blogs/admin", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Admin.Blogs.CreateBlogDto, Volo.Blogging.Admin.Application.Contracts", |
|||
"type": "Volo.Blogging.Admin.Blogs.CreateBlogDto", |
|||
"typeSimple": "Volo.Blogging.Admin.Blogs.CreateBlogDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Admin.Blogs.CreateBlogDto", |
|||
"typeSimple": "Volo.Blogging.Admin.Blogs.CreateBlogDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Blogs.Dtos.BlogDto", |
|||
"typeSimple": "Volo.Blogging.Blogs.Dtos.BlogDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
}, |
|||
"UpdateAsyncByIdAndInput": { |
|||
"uniqueName": "UpdateAsyncByIdAndInput", |
|||
"name": "UpdateAsync", |
|||
"httpMethod": "PUT", |
|||
"url": "api/blogging/blogs/admin/{id}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "id", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
}, |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Admin.Blogs.UpdateBlogDto, Volo.Blogging.Admin.Application.Contracts", |
|||
"type": "Volo.Blogging.Admin.Blogs.UpdateBlogDto", |
|||
"typeSimple": "Volo.Blogging.Admin.Blogs.UpdateBlogDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "id", |
|||
"name": "id", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Admin.Blogs.UpdateBlogDto", |
|||
"typeSimple": "Volo.Blogging.Admin.Blogs.UpdateBlogDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Blogs.Dtos.BlogDto", |
|||
"typeSimple": "Volo.Blogging.Blogs.Dtos.BlogDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
}, |
|||
"DeleteAsyncById": { |
|||
"uniqueName": "DeleteAsyncById", |
|||
"name": "DeleteAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/blogging/blogs/admin/{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": null, |
|||
"implementFrom": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
}, |
|||
"ClearCacheAsyncById": { |
|||
"uniqueName": "ClearCacheAsyncById", |
|||
"name": "ClearCacheAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/blogs/admin/clear-cache/{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": null, |
|||
"implementFrom": "Volo.Blogging.Admin.Blogs.IBlogManagementAppService" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"types": {} |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Blogging.Files; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
public partial class BlogFilesClientProxy |
|||
{ |
|||
public virtual async Task<RawFileDto> GetAsync(string name) |
|||
{ |
|||
return await RequestAsync<RawFileDto>(nameof(GetAsync), name); |
|||
} |
|||
|
|||
public virtual async Task<FileUploadOutputDto> CreateAsync(FileUploadInputDto input) |
|||
{ |
|||
return await RequestAsync<FileUploadOutputDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Blogging.Files; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IFileAppService), typeof(BlogFilesClientProxy))] |
|||
public partial class BlogFilesClientProxy : ClientProxyBase<IFileAppService>, IFileAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Blogging.Blogs; |
|||
using Volo.Blogging.Blogs.Dtos; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
public partial class BlogsClientProxy |
|||
{ |
|||
public virtual async Task<ListResultDto<BlogDto>> GetListAsync() |
|||
{ |
|||
return await RequestAsync<ListResultDto<BlogDto>>(nameof(GetListAsync)); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> GetByShortNameAsync(string shortName) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(GetByShortNameAsync), shortName); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Blogging.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogAppService), typeof(BlogsClientProxy))] |
|||
public partial class BlogsClientProxy : ClientProxyBase<IBlogAppService>, IBlogAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Blogging.Comments; |
|||
using System.Collections.Generic; |
|||
using Volo.Blogging.Comments.Dtos; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
public partial class CommentsClientProxy |
|||
{ |
|||
public virtual async Task<List<CommentWithRepliesDto>> GetHierarchicalListOfPostAsync(Guid postId) |
|||
{ |
|||
return await RequestAsync<List<CommentWithRepliesDto>>(nameof(GetHierarchicalListOfPostAsync), postId); |
|||
} |
|||
|
|||
public virtual async Task<CommentWithDetailsDto> CreateAsync(CreateCommentDto input) |
|||
{ |
|||
return await RequestAsync<CommentWithDetailsDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<CommentWithDetailsDto> UpdateAsync(Guid id, UpdateCommentDto input) |
|||
{ |
|||
return await RequestAsync<CommentWithDetailsDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Blogging.Comments; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(ICommentAppService), typeof(CommentsClientProxy))] |
|||
public partial class CommentsClientProxy : ClientProxyBase<ICommentAppService>, ICommentAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Blogging.Posts; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
public partial class PostsClientProxy |
|||
{ |
|||
public virtual async Task<ListResultDto<PostWithDetailsDto>> GetListByBlogIdAndTagNameAsync(Guid blogId, string tagName) |
|||
{ |
|||
return await RequestAsync<ListResultDto<PostWithDetailsDto>>(nameof(GetListByBlogIdAndTagNameAsync), blogId, tagName); |
|||
} |
|||
|
|||
public virtual async Task<ListResultDto<PostWithDetailsDto>> GetTimeOrderedListAsync(Guid blogId) |
|||
{ |
|||
return await RequestAsync<ListResultDto<PostWithDetailsDto>>(nameof(GetTimeOrderedListAsync), blogId); |
|||
} |
|||
|
|||
public virtual async Task<PostWithDetailsDto> GetForReadingAsync(GetPostInput input) |
|||
{ |
|||
return await RequestAsync<PostWithDetailsDto>(nameof(GetForReadingAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<PostWithDetailsDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<PostWithDetailsDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<PostWithDetailsDto> CreateAsync(CreatePostDto input) |
|||
{ |
|||
return await RequestAsync<PostWithDetailsDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<PostWithDetailsDto> UpdateAsync(Guid id, UpdatePostDto input) |
|||
{ |
|||
return await RequestAsync<PostWithDetailsDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Blogging.Posts; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IPostAppService), typeof(PostsClientProxy))] |
|||
public partial class PostsClientProxy : ClientProxyBase<IPostAppService>, IPostAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Blogging.Tagging; |
|||
using System.Collections.Generic; |
|||
using Volo.Blogging.Tagging.Dtos; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
public partial class TagsClientProxy |
|||
{ |
|||
public virtual async Task<List<TagDto>> GetPopularTagsAsync(Guid blogId, GetPopularTagsInput input) |
|||
{ |
|||
return await RequestAsync<List<TagDto>>(nameof(GetPopularTagsAsync), blogId, input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Blogging.Tagging; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Blogging.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(ITagAppService), typeof(TagsClientProxy))] |
|||
public partial class TagsClientProxy : ClientProxyBase<ITagAppService>, ITagAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,851 @@ |
|||
{ |
|||
"modules": { |
|||
"blogging": { |
|||
"rootPath": "blogging", |
|||
"remoteServiceName": "Blogging", |
|||
"controllers": { |
|||
"Volo.Blogging.BlogFilesController": { |
|||
"controllerName": "BlogFiles", |
|||
"type": "Volo.Blogging.BlogFilesController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Blogging.Files.IFileAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetAsyncByName": { |
|||
"uniqueName": "GetAsyncByName", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/files/{name}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "name", |
|||
"typeAsString": "System.String, System.Private.CoreLib", |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "name", |
|||
"name": "name", |
|||
"jsonName": null, |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Files.RawFileDto", |
|||
"typeSimple": "Volo.Blogging.Files.RawFileDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Files.IFileAppService" |
|||
}, |
|||
"GetForWebAsyncByName": { |
|||
"uniqueName": "GetForWebAsyncByName", |
|||
"name": "GetForWebAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/files/www/{name}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "name", |
|||
"typeAsString": "System.String, System.Private.CoreLib", |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "name", |
|||
"name": "name", |
|||
"jsonName": null, |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Microsoft.AspNetCore.Mvc.FileResult", |
|||
"typeSimple": "Microsoft.AspNetCore.Mvc.FileResult" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.BlogFilesController" |
|||
}, |
|||
"CreateAsyncByInput": { |
|||
"uniqueName": "CreateAsyncByInput", |
|||
"name": "CreateAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/blogging/files", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Files.FileUploadInputDto, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Files.FileUploadInputDto", |
|||
"typeSimple": "Volo.Blogging.Files.FileUploadInputDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Files.FileUploadInputDto", |
|||
"typeSimple": "Volo.Blogging.Files.FileUploadInputDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Files.FileUploadOutputDto", |
|||
"typeSimple": "Volo.Blogging.Files.FileUploadOutputDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Files.IFileAppService" |
|||
}, |
|||
"UploadImageByFile": { |
|||
"uniqueName": "UploadImageByFile", |
|||
"name": "UploadImage", |
|||
"httpMethod": "POST", |
|||
"url": "api/blogging/files/images/upload", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "file", |
|||
"typeAsString": "Microsoft.AspNetCore.Http.IFormFile, Microsoft.AspNetCore.Http.Features", |
|||
"type": "Microsoft.AspNetCore.Http.IFormFile", |
|||
"typeSimple": "Microsoft.AspNetCore.Http.IFormFile", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "file", |
|||
"name": "file", |
|||
"jsonName": null, |
|||
"type": "Microsoft.AspNetCore.Http.IFormFile", |
|||
"typeSimple": "Microsoft.AspNetCore.Http.IFormFile", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "FormFile", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Microsoft.AspNetCore.Mvc.JsonResult", |
|||
"typeSimple": "Microsoft.AspNetCore.Mvc.JsonResult" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.BlogFilesController" |
|||
} |
|||
} |
|||
}, |
|||
"Volo.Blogging.BlogsController": { |
|||
"controllerName": "Blogs", |
|||
"type": "Volo.Blogging.BlogsController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Blogging.Blogs.IBlogAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetListAsync": { |
|||
"uniqueName": "GetListAsync", |
|||
"name": "GetListAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/blogs", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [], |
|||
"parameters": [], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Blogs.Dtos.BlogDto>", |
|||
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Blogs.Dtos.BlogDto>" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Blogs.IBlogAppService" |
|||
}, |
|||
"GetByShortNameAsyncByShortName": { |
|||
"uniqueName": "GetByShortNameAsyncByShortName", |
|||
"name": "GetByShortNameAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/blogs/by-shortname/{shortName}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "shortName", |
|||
"typeAsString": "System.String, System.Private.CoreLib", |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "shortName", |
|||
"name": "shortName", |
|||
"jsonName": null, |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Blogs.Dtos.BlogDto", |
|||
"typeSimple": "Volo.Blogging.Blogs.Dtos.BlogDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Blogs.IBlogAppService" |
|||
}, |
|||
"GetAsyncById": { |
|||
"uniqueName": "GetAsyncById", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/blogs/{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": "Volo.Blogging.Blogs.Dtos.BlogDto", |
|||
"typeSimple": "Volo.Blogging.Blogs.Dtos.BlogDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Blogs.IBlogAppService" |
|||
} |
|||
} |
|||
}, |
|||
"Volo.Blogging.CommentsController": { |
|||
"controllerName": "Comments", |
|||
"type": "Volo.Blogging.CommentsController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Blogging.Comments.ICommentAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetHierarchicalListOfPostAsyncByPostId": { |
|||
"uniqueName": "GetHierarchicalListOfPostAsyncByPostId", |
|||
"name": "GetHierarchicalListOfPostAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/comments/hierarchical/{postId}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "postId", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "postId", |
|||
"name": "postId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "System.Collections.Generic.List<Volo.Blogging.Comments.Dtos.CommentWithRepliesDto>", |
|||
"typeSimple": "[Volo.Blogging.Comments.Dtos.CommentWithRepliesDto]" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Comments.ICommentAppService" |
|||
}, |
|||
"CreateAsyncByInput": { |
|||
"uniqueName": "CreateAsyncByInput", |
|||
"name": "CreateAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/blogging/comments", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Comments.Dtos.CreateCommentDto, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Comments.Dtos.CreateCommentDto", |
|||
"typeSimple": "Volo.Blogging.Comments.Dtos.CreateCommentDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Comments.Dtos.CreateCommentDto", |
|||
"typeSimple": "Volo.Blogging.Comments.Dtos.CreateCommentDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Comments.Dtos.CommentWithDetailsDto", |
|||
"typeSimple": "Volo.Blogging.Comments.Dtos.CommentWithDetailsDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Comments.ICommentAppService" |
|||
}, |
|||
"UpdateAsyncByIdAndInput": { |
|||
"uniqueName": "UpdateAsyncByIdAndInput", |
|||
"name": "UpdateAsync", |
|||
"httpMethod": "PUT", |
|||
"url": "api/blogging/comments/{id}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "id", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
}, |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Comments.Dtos.UpdateCommentDto, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Comments.Dtos.UpdateCommentDto", |
|||
"typeSimple": "Volo.Blogging.Comments.Dtos.UpdateCommentDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "id", |
|||
"name": "id", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Comments.Dtos.UpdateCommentDto", |
|||
"typeSimple": "Volo.Blogging.Comments.Dtos.UpdateCommentDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Comments.Dtos.CommentWithDetailsDto", |
|||
"typeSimple": "Volo.Blogging.Comments.Dtos.CommentWithDetailsDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Comments.ICommentAppService" |
|||
}, |
|||
"DeleteAsyncById": { |
|||
"uniqueName": "DeleteAsyncById", |
|||
"name": "DeleteAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/blogging/comments/{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": null, |
|||
"implementFrom": "Volo.Blogging.Comments.ICommentAppService" |
|||
} |
|||
} |
|||
}, |
|||
"Volo.Blogging.PostsController": { |
|||
"controllerName": "Posts", |
|||
"type": "Volo.Blogging.PostsController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Blogging.Posts.IPostAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetListByBlogIdAndTagNameAsyncByBlogIdAndTagName": { |
|||
"uniqueName": "GetListByBlogIdAndTagNameAsyncByBlogIdAndTagName", |
|||
"name": "GetListByBlogIdAndTagNameAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/posts/{blogId}/all", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "blogId", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
}, |
|||
{ |
|||
"name": "tagName", |
|||
"typeAsString": "System.String, System.Private.CoreLib", |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "blogId", |
|||
"name": "blogId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "tagName", |
|||
"name": "tagName", |
|||
"jsonName": null, |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Posts.PostWithDetailsDto>", |
|||
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Posts.PostWithDetailsDto>" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
}, |
|||
"GetTimeOrderedListAsyncByBlogId": { |
|||
"uniqueName": "GetTimeOrderedListAsyncByBlogId", |
|||
"name": "GetTimeOrderedListAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/posts/{blogId}/all/by-time", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "blogId", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "blogId", |
|||
"name": "blogId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Posts.PostWithDetailsDto>", |
|||
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<Volo.Blogging.Posts.PostWithDetailsDto>" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
}, |
|||
"GetForReadingAsyncByInput": { |
|||
"uniqueName": "GetForReadingAsyncByInput", |
|||
"name": "GetForReadingAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/posts/read", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Posts.GetPostInput, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Posts.GetPostInput", |
|||
"typeSimple": "Volo.Blogging.Posts.GetPostInput", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "Url", |
|||
"jsonName": null, |
|||
"type": "System.String", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "BlogId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Posts.PostWithDetailsDto", |
|||
"typeSimple": "Volo.Blogging.Posts.PostWithDetailsDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
}, |
|||
"GetAsyncById": { |
|||
"uniqueName": "GetAsyncById", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/posts/{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": "Volo.Blogging.Posts.PostWithDetailsDto", |
|||
"typeSimple": "Volo.Blogging.Posts.PostWithDetailsDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
}, |
|||
"CreateAsyncByInput": { |
|||
"uniqueName": "CreateAsyncByInput", |
|||
"name": "CreateAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/blogging/posts", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Posts.CreatePostDto, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Posts.CreatePostDto", |
|||
"typeSimple": "Volo.Blogging.Posts.CreatePostDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Posts.CreatePostDto", |
|||
"typeSimple": "Volo.Blogging.Posts.CreatePostDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Posts.PostWithDetailsDto", |
|||
"typeSimple": "Volo.Blogging.Posts.PostWithDetailsDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
}, |
|||
"UpdateAsyncByIdAndInput": { |
|||
"uniqueName": "UpdateAsyncByIdAndInput", |
|||
"name": "UpdateAsync", |
|||
"httpMethod": "PUT", |
|||
"url": "api/blogging/posts/{id}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "id", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
}, |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Posts.UpdatePostDto, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Posts.UpdatePostDto", |
|||
"typeSimple": "Volo.Blogging.Posts.UpdatePostDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "id", |
|||
"name": "id", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "Volo.Blogging.Posts.UpdatePostDto", |
|||
"typeSimple": "Volo.Blogging.Posts.UpdatePostDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "Volo.Blogging.Posts.PostWithDetailsDto", |
|||
"typeSimple": "Volo.Blogging.Posts.PostWithDetailsDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
}, |
|||
"DeleteAsyncById": { |
|||
"uniqueName": "DeleteAsyncById", |
|||
"name": "DeleteAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/blogging/posts/{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": null, |
|||
"implementFrom": "Volo.Blogging.Posts.IPostAppService" |
|||
} |
|||
} |
|||
}, |
|||
"Volo.Blogging.TagsController": { |
|||
"controllerName": "Tags", |
|||
"type": "Volo.Blogging.TagsController", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Blogging.Tagging.ITagAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetPopularTagsAsyncByBlogIdAndInput": { |
|||
"uniqueName": "GetPopularTagsAsyncByBlogIdAndInput", |
|||
"name": "GetPopularTagsAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/blogging/tags/popular/{blogId}", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "blogId", |
|||
"typeAsString": "System.Guid, System.Private.CoreLib", |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
}, |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "Volo.Blogging.Tagging.Dtos.GetPopularTagsInput, Volo.Blogging.Application.Contracts", |
|||
"type": "Volo.Blogging.Tagging.Dtos.GetPopularTagsInput", |
|||
"typeSimple": "Volo.Blogging.Tagging.Dtos.GetPopularTagsInput", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "blogId", |
|||
"name": "blogId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": [], |
|||
"bindingSourceId": "Path", |
|||
"descriptorName": "" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "ResultCount", |
|||
"jsonName": null, |
|||
"type": "System.Int32", |
|||
"typeSimple": "number", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "MinimumPostCount", |
|||
"jsonName": null, |
|||
"type": "System.Int32?", |
|||
"typeSimple": "number?", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "System.Collections.Generic.List<Volo.Blogging.Tagging.Dtos.TagDto>", |
|||
"typeSimple": "[Volo.Blogging.Tagging.Dtos.TagDto]" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "Volo.Blogging.Tagging.ITagAppService" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"types": {} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
{ |
|||
public partial class BlogAdminClientProxy |
|||
{ |
|||
public virtual async Task<BlogDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<BlogDto>> GetListAsync(BlogGetListInput input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<BlogDto>>(nameof(GetListAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> CreateAsync(CreateBlogDto input) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<BlogDto> UpdateAsync(Guid id, UpdateBlogDto input) |
|||
{ |
|||
return await RequestAsync<BlogDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogAdminAppService), typeof(BlogAdminClientProxy))] |
|||
public partial class BlogAdminClientProxy : ClientProxyBase<IBlogAdminAppService>, IBlogAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Blogs; |
|||
using System.Collections.Generic; |
|||
using Volo.CmsKit.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
{ |
|||
public partial class BlogFeatureAdminClientProxy |
|||
{ |
|||
public virtual async Task<List<BlogFeatureDto>> GetListAsync(Guid blogId) |
|||
{ |
|||
return await RequestAsync<List<BlogFeatureDto>>(nameof(GetListAsync), blogId); |
|||
} |
|||
|
|||
public virtual async Task SetAsync(Guid blogId, BlogFeatureInputDto dto) |
|||
{ |
|||
await RequestAsync(nameof(SetAsync), blogId, dto); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogFeatureAdminAppService), typeof(BlogFeatureAdminClientProxy))] |
|||
public partial class BlogFeatureAdminClientProxy : ClientProxyBase<IBlogFeatureAdminAppService>, IBlogFeatureAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
{ |
|||
public partial class BlogPostAdminClientProxy |
|||
{ |
|||
public virtual async Task<BlogPostDto> CreateAsync(CreateBlogPostDto input) |
|||
{ |
|||
return await RequestAsync<BlogPostDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<BlogPostDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<BlogPostDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<BlogPostListDto>> GetListAsync(BlogPostGetListInput input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<BlogPostListDto>>(nameof(GetListAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<BlogPostDto> UpdateAsync(Guid id, UpdateBlogPostDto input) |
|||
{ |
|||
return await RequestAsync<BlogPostDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogPostAdminAppService), typeof(BlogPostAdminClientProxy))] |
|||
public partial class BlogPostAdminClientProxy : ClientProxyBase<IBlogPostAdminAppService>, IBlogPostAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Comments; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Comments.ClientProxies |
|||
{ |
|||
public partial class CommentAdminClientProxy |
|||
{ |
|||
public virtual async Task<PagedResultDto<CommentWithAuthorDto>> GetListAsync(CommentGetListInput input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<CommentWithAuthorDto>>(nameof(GetListAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<CommentWithAuthorDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<CommentWithAuthorDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Comments; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Comments.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(ICommentAdminAppService), typeof(CommentAdminClientProxy))] |
|||
public partial class CommentAdminClientProxy : ClientProxyBase<ICommentAdminAppService>, ICommentAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Tags; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies |
|||
{ |
|||
public partial class EntityTagAdminClientProxy |
|||
{ |
|||
public virtual async Task AddTagToEntityAsync(EntityTagCreateDto input) |
|||
{ |
|||
await RequestAsync(nameof(AddTagToEntityAsync), input); |
|||
} |
|||
|
|||
public virtual async Task RemoveTagFromEntityAsync(EntityTagRemoveDto input) |
|||
{ |
|||
await RequestAsync(nameof(RemoveTagFromEntityAsync), input); |
|||
} |
|||
|
|||
public virtual async Task SetEntityTagsAsync(EntityTagSetDto input) |
|||
{ |
|||
await RequestAsync(nameof(SetEntityTagsAsync), input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Tags; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IEntityTagAdminAppService), typeof(EntityTagAdminClientProxy))] |
|||
public partial class EntityTagAdminClientProxy : ClientProxyBase<IEntityTagAdminAppService>, IEntityTagAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.MediaDescriptors; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.MediaDescriptors.ClientProxies |
|||
{ |
|||
public partial class MediaDescriptorAdminClientProxy |
|||
{ |
|||
public virtual async Task<MediaDescriptorDto> CreateAsync(string entityType, CreateMediaInputWithStream inputStream) |
|||
{ |
|||
return await RequestAsync<MediaDescriptorDto>(nameof(CreateAsync), entityType, inputStream); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.MediaDescriptors; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.MediaDescriptors.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IMediaDescriptorAdminAppService), typeof(MediaDescriptorAdminClientProxy))] |
|||
public partial class MediaDescriptorAdminClientProxy : ClientProxyBase<IMediaDescriptorAdminAppService>, IMediaDescriptorAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,50 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Menus; |
|||
using Volo.CmsKit.Menus; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Menus.ClientProxies |
|||
{ |
|||
public partial class MenuItemAdminClientProxy |
|||
{ |
|||
public virtual async Task<ListResultDto<MenuItemDto>> GetListAsync() |
|||
{ |
|||
return await RequestAsync<ListResultDto<MenuItemDto>>(nameof(GetListAsync)); |
|||
} |
|||
|
|||
public virtual async Task<MenuItemDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<MenuItemDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<MenuItemDto> CreateAsync(MenuItemCreateInput input) |
|||
{ |
|||
return await RequestAsync<MenuItemDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<MenuItemDto> UpdateAsync(Guid id, MenuItemUpdateInput input) |
|||
{ |
|||
return await RequestAsync<MenuItemDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
public virtual async Task MoveMenuItemAsync(Guid id, MenuItemMoveInput input) |
|||
{ |
|||
await RequestAsync(nameof(MoveMenuItemAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<PageLookupDto>> GetPageLookupAsync(PageLookupInputDto input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<PageLookupDto>>(nameof(GetPageLookupAsync), input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Menus; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Menus.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IMenuItemAdminAppService), typeof(MenuItemAdminClientProxy))] |
|||
public partial class MenuItemAdminClientProxy : ClientProxyBase<IMenuItemAdminAppService>, IMenuItemAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Pages; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Pages.ClientProxies |
|||
{ |
|||
public partial class PageAdminClientProxy |
|||
{ |
|||
public virtual async Task<PageDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<PageDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<PageDto>> GetListAsync(GetPagesInputDto input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<PageDto>>(nameof(GetListAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<PageDto> CreateAsync(CreatePageInputDto input) |
|||
{ |
|||
return await RequestAsync<PageDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<PageDto> UpdateAsync(Guid id, UpdatePageInputDto input) |
|||
{ |
|||
return await RequestAsync<PageDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Pages; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Pages.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IPageAdminAppService), typeof(PageAdminClientProxy))] |
|||
public partial class PageAdminClientProxy : ClientProxyBase<IPageAdminAppService>, IPageAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Admin.Tags; |
|||
using Volo.CmsKit.Tags; |
|||
using System.Collections.Generic; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies |
|||
{ |
|||
public partial class TagAdminClientProxy |
|||
{ |
|||
public virtual async Task<TagDto> CreateAsync(TagCreateDto input) |
|||
{ |
|||
return await RequestAsync<TagDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<TagDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<TagDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<TagDto>> GetListAsync(TagGetListInput input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<TagDto>>(nameof(GetListAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<TagDto> UpdateAsync(Guid id, TagUpdateDto input) |
|||
{ |
|||
return await RequestAsync<TagDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task<List<TagDefinitionDto>> GetTagDefinitionsAsync() |
|||
{ |
|||
return await RequestAsync<List<TagDefinitionDto>>(nameof(GetTagDefinitionsAsync)); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Admin.Tags; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(ITagAdminAppService), typeof(TagAdminClientProxy))] |
|||
public partial class TagAdminClientProxy : ClientProxyBase<ITagAdminAppService>, ITagAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Blogs.ClientProxies |
|||
{ |
|||
public partial class BlogFeatureClientProxy |
|||
{ |
|||
public virtual async Task<BlogFeatureDto> GetOrDefaultAsync(Guid blogId, string featureName) |
|||
{ |
|||
return await RequestAsync<BlogFeatureDto>(nameof(GetOrDefaultAsync), blogId, featureName); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Blogs.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogFeatureAppService), typeof(BlogFeatureClientProxy))] |
|||
public partial class BlogFeatureClientProxy : ClientProxyBase<IBlogFeatureAppService>, IBlogFeatureAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Public.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Blogs.ClientProxies |
|||
{ |
|||
public partial class BlogPostPublicClientProxy |
|||
{ |
|||
public virtual async Task<BlogPostPublicDto> GetAsync(string blogSlug, string blogPostSlug) |
|||
{ |
|||
return await RequestAsync<BlogPostPublicDto>(nameof(GetAsync), blogSlug, blogPostSlug); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<BlogPostPublicDto>> GetListAsync(string blogSlug, PagedAndSortedResultRequestDto input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<BlogPostPublicDto>>(nameof(GetListAsync), blogSlug, input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Public.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Blogs.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogPostPublicAppService), typeof(BlogPostPublicClientProxy))] |
|||
public partial class BlogPostPublicClientProxy : ClientProxyBase<IBlogPostPublicAppService>, IBlogPostPublicAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Public.Comments; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Comments.ClientProxies |
|||
{ |
|||
public partial class CommentPublicClientProxy |
|||
{ |
|||
public virtual async Task<ListResultDto<CommentWithDetailsDto>> GetListAsync(string entityType, string entityId) |
|||
{ |
|||
return await RequestAsync<ListResultDto<CommentWithDetailsDto>>(nameof(GetListAsync), entityType, entityId); |
|||
} |
|||
|
|||
public virtual async Task<CommentDto> CreateAsync(string entityType, string entityId, CreateCommentInput input) |
|||
{ |
|||
return await RequestAsync<CommentDto>(nameof(CreateAsync), entityType, entityId, input); |
|||
} |
|||
|
|||
public virtual async Task<CommentDto> UpdateAsync(Guid id, UpdateCommentInput input) |
|||
{ |
|||
return await RequestAsync<CommentDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Public.Comments; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Comments.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(ICommentPublicAppService), typeof(CommentPublicClientProxy))] |
|||
public partial class CommentPublicClientProxy : ClientProxyBase<ICommentPublicAppService>, ICommentPublicAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.MediaDescriptors; |
|||
using Volo.Abp.Content; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.MediaDescriptors.ClientProxies |
|||
{ |
|||
public partial class MediaDescriptorClientProxy |
|||
{ |
|||
public virtual async Task<RemoteStreamContent> DownloadAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<RemoteStreamContent>(nameof(DownloadAsync), id); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.MediaDescriptors; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.MediaDescriptors.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IMediaDescriptorAppService), typeof(MediaDescriptorClientProxy))] |
|||
public partial class MediaDescriptorClientProxy : ClientProxyBase<IMediaDescriptorAppService>, IMediaDescriptorAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Public.Menus; |
|||
using System.Collections.Generic; |
|||
using Volo.CmsKit.Menus; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Menus.ClientProxies |
|||
{ |
|||
public partial class MenuItemPublicClientProxy |
|||
{ |
|||
public virtual async Task<List<MenuItemDto>> GetListAsync() |
|||
{ |
|||
return await RequestAsync<List<MenuItemDto>>(nameof(GetListAsync)); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Public.Menus; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Menus.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IMenuItemPublicAppService), typeof(MenuItemPublicClientProxy))] |
|||
public partial class MenuItemPublicClientProxy : ClientProxyBase<IMenuItemPublicAppService>, IMenuItemPublicAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Public.Pages; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Pages.ClientProxies |
|||
{ |
|||
public partial class PagesPublicClientProxy |
|||
{ |
|||
public virtual async Task<PageDto> FindBySlugAsync(string slug) |
|||
{ |
|||
return await RequestAsync<PageDto>(nameof(FindBySlugAsync), slug); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Public.Pages; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Pages.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IPagePublicAppService), typeof(PagesPublicClientProxy))] |
|||
public partial class PagesPublicClientProxy : ClientProxyBase<IPagePublicAppService>, IPagePublicAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Public.Ratings; |
|||
using System.Collections.Generic; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Ratings.ClientProxies |
|||
{ |
|||
public partial class RatingPublicClientProxy |
|||
{ |
|||
public virtual async Task<RatingDto> CreateAsync(string entityType, string entityId, CreateUpdateRatingInput input) |
|||
{ |
|||
return await RequestAsync<RatingDto>(nameof(CreateAsync), entityType, entityId, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(string entityType, string entityId) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), entityType, entityId); |
|||
} |
|||
|
|||
public virtual async Task<List<RatingWithStarCountDto>> GetGroupedStarCountsAsync(string entityType, string entityId) |
|||
{ |
|||
return await RequestAsync<List<RatingWithStarCountDto>>(nameof(GetGroupedStarCountsAsync), entityType, entityId); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Public.Ratings; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Ratings.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IRatingPublicAppService), typeof(RatingPublicClientProxy))] |
|||
public partial class RatingPublicClientProxy : ClientProxyBase<IRatingPublicAppService>, IRatingPublicAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Public.Reactions; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Reactions.ClientProxies |
|||
{ |
|||
public partial class ReactionPublicClientProxy |
|||
{ |
|||
public virtual async Task<ListResultDto<ReactionWithSelectionDto>> GetForSelectionAsync(string entityType, string entityId) |
|||
{ |
|||
return await RequestAsync<ListResultDto<ReactionWithSelectionDto>>(nameof(GetForSelectionAsync), entityType, entityId); |
|||
} |
|||
|
|||
public virtual async Task CreateAsync(string entityType, string entityId, string reaction) |
|||
{ |
|||
await RequestAsync(nameof(CreateAsync), entityType, entityId, reaction); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(string entityType, string entityId, string reaction) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), entityType, entityId, reaction); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Public.Reactions; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Reactions.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IReactionPublicAppService), typeof(ReactionPublicClientProxy))] |
|||
public partial class ReactionPublicClientProxy : ClientProxyBase<IReactionPublicAppService>, IReactionPublicAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Tags; |
|||
using System.Collections.Generic; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Tags.ClientProxies |
|||
{ |
|||
public partial class TagPublicClientProxy |
|||
{ |
|||
public virtual async Task<List<TagDto>> GetAllRelatedTagsAsync(string entityType, string entityId) |
|||
{ |
|||
return await RequestAsync<List<TagDto>>(nameof(GetAllRelatedTagsAsync), entityType, entityId); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.CmsKit.Tags; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Public.Tags.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(ITagAppService), typeof(TagPublicClientProxy))] |
|||
public partial class TagPublicClientProxy : ClientProxyBase<ITagAppService>, ITagAppService |
|||
{ |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,3 +1,3 @@ |
|||
{ |
|||
"ConnectionString": "Server=localhost;Database=VoloDocs;Trusted_Connection=True" |
|||
"ConnectionString": "Server=(localdb)\\.\\MSSQLLocalDB;Database=VoloDocs;Trusted_Connection=True" |
|||
} |
|||
@ -0,0 +1,44 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Docs.Admin.Documents; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Docs.Admin.ClientProxies |
|||
{ |
|||
public partial class DocumentsAdminClientProxy |
|||
{ |
|||
public virtual async Task ClearCacheAsync(ClearCacheInput input) |
|||
{ |
|||
await RequestAsync(nameof(ClearCacheAsync), input); |
|||
} |
|||
|
|||
public virtual async Task PullAllAsync(PullAllDocumentInput input) |
|||
{ |
|||
await RequestAsync(nameof(PullAllAsync), input); |
|||
} |
|||
|
|||
public virtual async Task PullAsync(PullDocumentInput input) |
|||
{ |
|||
await RequestAsync(nameof(PullAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<PagedResultDto<DocumentDto>> GetAllAsync(GetAllInput input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<DocumentDto>>(nameof(GetAllAsync), input); |
|||
} |
|||
|
|||
public virtual async Task RemoveFromCacheAsync(Guid documentId) |
|||
{ |
|||
await RequestAsync(nameof(RemoveFromCacheAsync), documentId); |
|||
} |
|||
|
|||
public virtual async Task ReindexAsync(Guid documentId) |
|||
{ |
|||
await RequestAsync(nameof(ReindexAsync), documentId); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Docs.Admin.Documents; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Docs.Admin.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IDocumentAdminAppService), typeof(DocumentsAdminClientProxy))] |
|||
public partial class DocumentsAdminClientProxy : ClientProxyBase<IDocumentAdminAppService>, IDocumentAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.Docs.Admin.Projects; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Docs.Admin.ClientProxies |
|||
{ |
|||
public partial class ProjectsAdminClientProxy |
|||
{ |
|||
public virtual async Task<PagedResultDto<ProjectDto>> GetListAsync(PagedAndSortedResultRequestDto input) |
|||
{ |
|||
return await RequestAsync<PagedResultDto<ProjectDto>>(nameof(GetListAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<ProjectDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<ProjectDto>(nameof(GetAsync), id); |
|||
} |
|||
|
|||
public virtual async Task<ProjectDto> CreateAsync(CreateProjectDto input) |
|||
{ |
|||
return await RequestAsync<ProjectDto>(nameof(CreateAsync), input); |
|||
} |
|||
|
|||
public virtual async Task<ProjectDto> UpdateAsync(Guid id, UpdateProjectDto input) |
|||
{ |
|||
return await RequestAsync<ProjectDto>(nameof(UpdateAsync), id, input); |
|||
} |
|||
|
|||
public virtual async Task DeleteAsync(Guid id) |
|||
{ |
|||
await RequestAsync(nameof(DeleteAsync), id); |
|||
} |
|||
|
|||
public virtual async Task ReindexAllAsync() |
|||
{ |
|||
await RequestAsync(nameof(ReindexAllAsync)); |
|||
} |
|||
|
|||
public virtual async Task ReindexAsync(ReindexInput input) |
|||
{ |
|||
await RequestAsync(nameof(ReindexAsync), input); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Docs.Admin.Projects; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.Docs.Admin.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IProjectAdminAppService), typeof(ProjectsAdminClientProxy))] |
|||
public partial class ProjectsAdminClientProxy : ClientProxyBase<IProjectAdminAppService>, IProjectAdminAppService |
|||
{ |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue