package repository

import "nex/backend/internal/domain"

//go:generate go run go.uber.org/mock/mockgen -source=provider_repo.go -destination=../../tests/mocks/mock_provider_repository.go -package=mocks

// ProviderRepository 供应商数据仓库接口
type ProviderRepository interface {
	Create(provider *domain.Provider) error
	GetByID(id string) (*domain.Provider, error)
	List() ([]domain.Provider, error)
	Update(id string, updates map[string]interface{}) error
	Delete(id string) error
}
