-
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.
- Loading branch information
1 parent
bd616cf
commit 81e0eee
Showing
6 changed files
with
139 additions
and
6 deletions.
There are no files selected for viewing
16 changes: 15 additions & 1 deletion
16
product-services/pkg/api/handler/interfaces/productinterfaces.go
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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
package interfaces | ||
|
||
import "github.com/gin-gonic/gin" | ||
|
||
type ProductHandler interface { | ||
// | ||
|
||
// Product | ||
AddProduct(ctx *gin.Context) | ||
UpdateProduct(ctx *gin.Context) | ||
DeteleProduct(ctx *gin.Context) | ||
ListFullProducts(ctx *gin.Context) | ||
GetProductById(ctx *gin.Context) | ||
|
||
// Category | ||
// Sub-Category | ||
// Brand | ||
// Sorting | ||
// Searching | ||
} |
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
13 changes: 12 additions & 1 deletion
13
product-services/pkg/repositories/interfaces/productinterfaces.go
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 |
---|---|---|
@@ -1,5 +1,16 @@ | ||
package interfaces | ||
|
||
type ProductRepositorie interface { | ||
// | ||
|
||
// Product | ||
AddProduct() | ||
UpdateProduct() | ||
DeleteProduct() | ||
|
||
// Filtering | ||
GetFullProducts() | ||
GetProductById() | ||
GetProductByName() | ||
GetProductByCategory() | ||
GetProductByBrand() | ||
} |
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
19 changes: 16 additions & 3 deletions
19
product-services/pkg/usecase/interfaces/productinterfaces.go
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 |
---|---|---|
@@ -1,5 +1,18 @@ | ||
package interfaces | ||
|
||
type ProductUseCase interface{ | ||
|
||
} | ||
type ProductUseCase interface { | ||
|
||
// Product | ||
CreateProduct() | ||
UpdateProduct() | ||
DeletProduct() | ||
|
||
// Listing | ||
ViewFullProducts() | ||
ViewProductById() | ||
ViewProductByName() | ||
ViewProductsByCategory() | ||
ViewProductsBySUbCategory() | ||
ViewProductsByBrands() | ||
|
||
} |
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