Files
Datarush/internal/lms/repository/order.go
T
2025-12-11 02:36:03 +04:00

18 lines
414 B
Go

package repository
import (
"context"
"datarush/internal/lms/domain"
"github.com/google/uuid"
)
type OrderRepository interface {
Create(ctx context.Context, order *domain.Order) error
Get(ctx context.Context, id uuid.UUID) (*domain.Order, error)
Update(ctx context.Context, order *domain.Order) error
Delete(ctx context.Context, id uuid.UUID) error
List(ctx context.Context) ([]*domain.Order, error)
}