- Added new job analysis result repository and database migration system - Expanded job creation to support Glassdoor as a new provider alongside LinkedIn - Added CV analysis service launch configuration in VS Code - Updated Makefile with new commands for scraper service and migrations - Improved environment loading in cron analyzer to support local development - Added error handling for unsupported job providers - Integrated job analysis results
21 lines
450 B
Go
21 lines
450 B
Go
package ports
|
|
|
|
import "github.com/jobs-scraper/shared/domain"
|
|
|
|
type JobCommands struct {
|
|
CreateJob JobCommandHandler
|
|
}
|
|
|
|
// CreateJobCommand represents the command to create a job
|
|
type CreateJobCommand struct {
|
|
Location string
|
|
Keywords string
|
|
FWT string
|
|
Provider domain.JobProvider
|
|
NumPages int
|
|
}
|
|
|
|
// JobCommandHandler defines the interface for handling job commands
|
|
type JobCommandHandler interface {
|
|
Handle(cmd CreateJobCommand) error
|
|
}
|