Files
crawlab/core/interfaces/spider_template_service.go
Marvin Zhang 8d8b47e474 refactor: streamline file service retrieval and enhance spider template handling
- Replaced direct calls to getBaseFileFsSvc with a new method fs.GetBaseFileFsSvc in base_file.go for improved clarity and maintainability.
- Introduced SpiderTemplateService interface and implemented registry service for managing spider templates, enhancing template handling in the spider controller.
- Added template-related fields to the Spider model to support template functionality.
- Created utility functions for string case conversions in utils/string.go to facilitate consistent formatting across the codebase.
- Updated environment configuration to retrieve the Python path dynamically, improving flexibility in the task runner's setup.
2025-01-06 18:09:45 +08:00

8 lines
165 B
Go

package interfaces
import "go.mongodb.org/mongo-driver/bson/primitive"
type SpiderTemplateService interface {
CreateTemplate(id primitive.ObjectID) (err error)
}