Skip to content

Commit

Permalink
[Aggregator] Added Service InterfaceClasses for Consuming Internal Mi…
Browse files Browse the repository at this point in the history
…croservices
  • Loading branch information
hidayatarg committed Oct 12, 2023
1 parent 08f33f6 commit ac97d1c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Shopping.Aggregator.Models;

namespace Shopping.Aggregator.Services;

public interface IBasketService
{
Task<BasketModel> GetBasket(string userName);
}
10 changes: 10 additions & 0 deletions src/ApiGateways/Shopping.Aggregator/Services/ICatalogService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Shopping.Aggregator.Models;

namespace Shopping.Aggregator.Services;

public interface ICatalogService
{
Task<IEnumerable<CatalogModel>> GetCatalog();
Task<IEnumerable<CatalogModel>> GetCatalogByCategory(string category);
Task<CatalogModel> GetCatalog(string id);
}
8 changes: 8 additions & 0 deletions src/ApiGateways/Shopping.Aggregator/Services/IOrderService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Shopping.Aggregator.Models;

namespace Shopping.Aggregator.Services;

public interface IOrderService
{
Task<IEnumerable<OrderResponseModel>> GetOrdersByUserName(string userName);
}

0 comments on commit ac97d1c

Please sign in to comment.