-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Aggregator] Added Service InterfaceClasses for Consuming Internal Mi…
…croservices
- Loading branch information
1 parent
08f33f6
commit ac97d1c
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/ApiGateways/Shopping.Aggregator/Services/IBasketService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
src/ApiGateways/Shopping.Aggregator/Services/ICatalogService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
8
src/ApiGateways/Shopping.Aggregator/Services/IOrderService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |