You've already forked orderservice
chore: refactored project according to clean architecture
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user