Merge pull request #16964 from abpframework/settingManagement-generate-proxy

Update proxy for `SettingManagement`.
pull/16970/head
liangshiwei 2 years ago committed by GitHub
commit 23a79da8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,38 +0,0 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Modeling;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.SettingManagement;
// ReSharper disable once CheckNamespace
namespace Volo.Abp.SettingManagement.ClientProxies;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IEmailSettingsAppService), typeof(EmailSettingsClientProxy))]
public partial class EmailSettingsClientProxy : ClientProxyBase<IEmailSettingsAppService>, IEmailSettingsAppService
{
public virtual async Task<EmailSettingsDto> GetAsync()
{
return await RequestAsync<EmailSettingsDto>(nameof(GetAsync));
}
public virtual async Task UpdateAsync(UpdateEmailSettingsDto input)
{
await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue
{
{ typeof(UpdateEmailSettingsDto), input }
});
}
public virtual async Task SendTestEmailAsync(SendTestEmailInput input)
{
await RequestAsync(nameof(SendTestEmailAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendTestEmailInput), input }
});
}
}

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

@ -221,7 +221,7 @@
"uniqueName": "GetTimezonesAsync",
"name": "GetTimezonesAsync",
"httpMethod": "GET",
"url": "api/setting-management/timezone",
"url": "api/setting-management/timezone/timezones",
"supportedVersions": [],
"parametersOnMethod": [],
"parameters": [],

@ -53,7 +53,7 @@
volo.abp.settingManagement.timeZoneSettings.getTimezones = function(ajaxParams) {
return abp.ajax($.extend(true, {
url: abp.appPath + 'api/setting-management/timezone',
url: abp.appPath + 'api/setting-management/timezone/timezones',
type: 'GET'
}, ajaxParams));
};

Loading…
Cancel
Save