From 9c73272489a753c66d9673ee2ed852bf137994cc Mon Sep 17 00:00:00 2001 From: malik masis Date: Tue, 1 Nov 2022 21:44:34 +0300 Subject: [PATCH] updated the proxies --- .../FeaturesClientProxy.Generated.cs | 5 +++++ .../featureManagement-generate-proxy.json | 17 +++++++++++++++++ .../client-proxies/featureManagement-proxy.js | 8 ++++++++ 3 files changed, 30 insertions(+) diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/FeaturesClientProxy.Generated.cs b/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/FeaturesClientProxy.Generated.cs index a315445d84..17e925add9 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/FeaturesClientProxy.Generated.cs +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/FeaturesClientProxy.Generated.cs @@ -33,4 +33,9 @@ public partial class FeaturesClientProxy : ClientProxyBase, { typeof(UpdateFeaturesDto), input } }); } + + public virtual async Task ResetToDefaultAsync() + { + await RequestAsync(nameof(ResetToDefaultAsync)); + } } diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/featureManagement-generate-proxy.json b/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/featureManagement-generate-proxy.json index 79a8b31a0c..e42f497760 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/featureManagement-generate-proxy.json +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/ClientProxies/featureManagement-generate-proxy.json @@ -7,6 +7,8 @@ "Volo.Abp.FeatureManagement.FeaturesController": { "controllerName": "Features", "controllerGroupName": "Features", + "isRemoteService": true, + "apiVersion": null, "type": "Volo.Abp.FeatureManagement.FeaturesController", "interfaces": [ { @@ -147,6 +149,21 @@ }, "allowAnonymous": null, "implementFrom": "Volo.Abp.FeatureManagement.IFeatureAppService" + }, + "ResetToDefaultAsync": { + "uniqueName": "ResetToDefaultAsync", + "name": "ResetToDefaultAsync", + "httpMethod": null, + "url": "api/feature-management/features", + "supportedVersions": [], + "parametersOnMethod": [], + "parameters": [], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "Volo.Abp.FeatureManagement.IFeatureAppService" } } } diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/wwwroot/client-proxies/featureManagement-proxy.js b/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/wwwroot/client-proxies/featureManagement-proxy.js index 3c149c0a7f..0dd0de7dc4 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/wwwroot/client-proxies/featureManagement-proxy.js +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/wwwroot/client-proxies/featureManagement-proxy.js @@ -27,6 +27,14 @@ }, ajaxParams)); }; + volo.abp.featureManagement.features.resetToDefault = function(ajaxParams) { + return abp.ajax($.extend(true, { + url: abp.appPath + 'api/feature-management/features', + type: 'POST', + dataType: null + }, ajaxParams)); + }; + })(); })();