chore: refactored project according to clean architecture

This commit is contained in:
ITQ
2025-11-04 14:38:35 +03:00
parent e2dc7d5654
commit a929437ab7
8 changed files with 340 additions and 112 deletions
+15
View File
@@ -0,0 +1,15 @@
package repository
import (
"context"
"orderservice/internal/domain"
)
type OrderRepository interface {
Create(ctx context.Context, order *domain.Order) error
Get(ctx context.Context, id string) (*domain.Order, error)
Update(ctx context.Context, order *domain.Order) error
Delete(ctx context.Context, id string) error
List(ctx context.Context) ([]*domain.Order, error)
}