package repository import "nex/backend/internal/domain" // ModelRepository 模型数据仓库接口 type ModelRepository interface { Create(model *domain.Model) error GetByID(id string) (*domain.Model, error) List(providerID string) ([]domain.Model, error) GetByModelName(modelName string) (*domain.Model, error) Update(id string, updates map[string]interface{}) error Delete(id string) error }