mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
726 B
24 lines
726 B
using System.Threading.Tasks;
|
|
using Volo.Abp.DependencyInjection;
|
|
using Volo.Abp.Http.Client.ClientProxying;
|
|
using Volo.Abp.Http.Modeling;
|
|
|
|
namespace Volo.Abp.Http.DynamicProxying;
|
|
|
|
public class TestObjectToPath : IObjectToPath<int>, ITransientDependency
|
|
{
|
|
public Task<string> ConvertAsync(ActionApiDescriptionModel actionApiDescription, ParameterApiDescriptionModel parameterApiDescription, int value)
|
|
{
|
|
if (actionApiDescription.Name == nameof(IRegularTestController.GetObjectandCountAsync))
|
|
{
|
|
if (value <= 0)
|
|
{
|
|
value = 888;
|
|
}
|
|
return Task.FromResult(value.ToString());
|
|
}
|
|
|
|
return Task.FromResult<string>(null);
|
|
}
|
|
}
|