6 changed files with 162 additions and 5 deletions
@ -0,0 +1,34 @@ |
|||
// 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 EShopOnAbp.OrderingService.Orders; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace EShopOnAbp.OrderingService.Orders.ClientProxies |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IOrderAppService), typeof(OrderClientProxy))] |
|||
public partial class OrderClientProxy : ClientProxyBase<IOrderAppService>, IOrderAppService |
|||
{ |
|||
public virtual async Task<OrderDto> GetAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<OrderDto>(nameof(GetAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid), id } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task<OrderDto> CreateAsync(OrderCreateDto input) |
|||
{ |
|||
return await RequestAsync<OrderDto>(nameof(CreateAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(OrderCreateDto), input } |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
// This file is part of OrderClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace EShopOnAbp.OrderingService.Orders.ClientProxies |
|||
{ |
|||
public partial class OrderClientProxy |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,106 @@ |
|||
{ |
|||
"modules": { |
|||
"ordering": { |
|||
"rootPath": "ordering", |
|||
"remoteServiceName": "Ordering", |
|||
"controllers": { |
|||
"EShopOnAbp.OrderingService.Orders.OrderAppService": { |
|||
"controllerName": "Order", |
|||
"controllerGroupName": "Order", |
|||
"type": "EShopOnAbp.OrderingService.Orders.OrderAppService", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Abp.Validation.IValidationEnabled" |
|||
}, |
|||
{ |
|||
"type": "Volo.Abp.Auditing.IAuditingEnabled" |
|||
}, |
|||
{ |
|||
"type": "Volo.Abp.GlobalFeatures.IGlobalFeatureCheckingEnabled" |
|||
}, |
|||
{ |
|||
"type": "EShopOnAbp.OrderingService.Orders.IOrderAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetAsyncById": { |
|||
"uniqueName": "GetAsyncById", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/ordering/order/{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": "EShopOnAbp.OrderingService.Orders.OrderDto", |
|||
"typeSimple": "EShopOnAbp.OrderingService.Orders.OrderDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "EShopOnAbp.OrderingService.Orders.IOrderAppService" |
|||
}, |
|||
"CreateAsyncByInput": { |
|||
"uniqueName": "CreateAsyncByInput", |
|||
"name": "CreateAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/ordering/order", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "EShopOnAbp.OrderingService.Orders.OrderCreateDto, EShopOnAbp.OrderingService.Application.Contracts", |
|||
"type": "EShopOnAbp.OrderingService.Orders.OrderCreateDto", |
|||
"typeSimple": "EShopOnAbp.OrderingService.Orders.OrderCreateDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "EShopOnAbp.OrderingService.Orders.OrderCreateDto", |
|||
"typeSimple": "EShopOnAbp.OrderingService.Orders.OrderCreateDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "EShopOnAbp.OrderingService.Orders.OrderDto", |
|||
"typeSimple": "EShopOnAbp.OrderingService.Orders.OrderDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "EShopOnAbp.OrderingService.Orders.IOrderAppService" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"types": {} |
|||
} |
|||
Loading…
Reference in new issue