6 changed files with 242 additions and 3 deletions
@ -0,0 +1,41 @@ |
|||
// 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.BasketService.Services; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace EShopOnAbp.BasketService.Services.ClientProxies; |
|||
|
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBasketAppService), typeof(BasketClientProxy))] |
|||
public partial class BasketClientProxy : ClientProxyBase<IBasketAppService>, IBasketAppService |
|||
{ |
|||
public virtual async Task<BasketDto> GetAsync(Guid? anonymousUserId) |
|||
{ |
|||
return await RequestAsync<BasketDto>(nameof(GetAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid?), anonymousUserId } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task<BasketDto> AddProductAsync(AddProductDto input) |
|||
{ |
|||
return await RequestAsync<BasketDto>(nameof(AddProductAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(AddProductDto), input } |
|||
}); |
|||
} |
|||
|
|||
public virtual async Task<BasketDto> RemoveProductAsync(RemoveProductDto input) |
|||
{ |
|||
return await RequestAsync<BasketDto>(nameof(RemoveProductAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(RemoveProductDto), input } |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
// This file is part of BasketClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace EShopOnAbp.BasketService.Services.ClientProxies; |
|||
|
|||
public partial class BasketClientProxy |
|||
{ |
|||
} |
|||
@ -0,0 +1,167 @@ |
|||
{ |
|||
"modules": { |
|||
"basket": { |
|||
"rootPath": "basket", |
|||
"remoteServiceName": "Basket", |
|||
"controllers": { |
|||
"EShopOnAbp.BasketService.Services.BasketAppService": { |
|||
"controllerName": "Basket", |
|||
"controllerGroupName": "Basket", |
|||
"type": "EShopOnAbp.BasketService.Services.BasketAppService", |
|||
"interfaces": [ |
|||
{ |
|||
"type": "Volo.Abp.Validation.IValidationEnabled" |
|||
}, |
|||
{ |
|||
"type": "Volo.Abp.Auditing.IAuditingEnabled" |
|||
}, |
|||
{ |
|||
"type": "Volo.Abp.GlobalFeatures.IGlobalFeatureCheckingEnabled" |
|||
}, |
|||
{ |
|||
"type": "EShopOnAbp.BasketService.Services.IBasketAppService" |
|||
} |
|||
], |
|||
"actions": { |
|||
"GetAsyncByAnonymousUserId": { |
|||
"uniqueName": "GetAsyncByAnonymousUserId", |
|||
"name": "GetAsync", |
|||
"httpMethod": "GET", |
|||
"url": "api/basket/basket", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "anonymousUserId", |
|||
"typeAsString": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib", |
|||
"type": "System.Guid?", |
|||
"typeSimple": "string?", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "anonymousUserId", |
|||
"name": "anonymousUserId", |
|||
"jsonName": null, |
|||
"type": "System.Guid?", |
|||
"typeSimple": "string?", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "EShopOnAbp.BasketService.Services.BasketDto", |
|||
"typeSimple": "EShopOnAbp.BasketService.Services.BasketDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "EShopOnAbp.BasketService.Services.IBasketAppService" |
|||
}, |
|||
"AddProductAsyncByInput": { |
|||
"uniqueName": "AddProductAsyncByInput", |
|||
"name": "AddProductAsync", |
|||
"httpMethod": "POST", |
|||
"url": "api/basket/basket/product", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "EShopOnAbp.BasketService.Services.AddProductDto, EShopOnAbp.BasketService.Contracts", |
|||
"type": "EShopOnAbp.BasketService.Services.AddProductDto", |
|||
"typeSimple": "EShopOnAbp.BasketService.Services.AddProductDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "input", |
|||
"jsonName": null, |
|||
"type": "EShopOnAbp.BasketService.Services.AddProductDto", |
|||
"typeSimple": "EShopOnAbp.BasketService.Services.AddProductDto", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "Body", |
|||
"descriptorName": "" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "EShopOnAbp.BasketService.Services.BasketDto", |
|||
"typeSimple": "EShopOnAbp.BasketService.Services.BasketDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "EShopOnAbp.BasketService.Services.IBasketAppService" |
|||
}, |
|||
"RemoveProductAsyncByInput": { |
|||
"uniqueName": "RemoveProductAsyncByInput", |
|||
"name": "RemoveProductAsync", |
|||
"httpMethod": "DELETE", |
|||
"url": "api/basket/basket/product", |
|||
"supportedVersions": [], |
|||
"parametersOnMethod": [ |
|||
{ |
|||
"name": "input", |
|||
"typeAsString": "EShopOnAbp.BasketService.Services.RemoveProductDto, EShopOnAbp.BasketService.Contracts", |
|||
"type": "EShopOnAbp.BasketService.Services.RemoveProductDto", |
|||
"typeSimple": "EShopOnAbp.BasketService.Services.RemoveProductDto", |
|||
"isOptional": false, |
|||
"defaultValue": null |
|||
} |
|||
], |
|||
"parameters": [ |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "ProductId", |
|||
"jsonName": null, |
|||
"type": "System.Guid", |
|||
"typeSimple": "string", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "Count", |
|||
"jsonName": null, |
|||
"type": "System.Int32?", |
|||
"typeSimple": "number?", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
}, |
|||
{ |
|||
"nameOnMethod": "input", |
|||
"name": "AnonymousId", |
|||
"jsonName": null, |
|||
"type": "System.Guid?", |
|||
"typeSimple": "string?", |
|||
"isOptional": false, |
|||
"defaultValue": null, |
|||
"constraintTypes": null, |
|||
"bindingSourceId": "ModelBinding", |
|||
"descriptorName": "input" |
|||
} |
|||
], |
|||
"returnValue": { |
|||
"type": "EShopOnAbp.BasketService.Services.BasketDto", |
|||
"typeSimple": "EShopOnAbp.BasketService.Services.BasketDto" |
|||
}, |
|||
"allowAnonymous": null, |
|||
"implementFrom": "EShopOnAbp.BasketService.Services.IBasketAppService" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"types": {} |
|||
} |
|||
Loading…
Reference in new issue