jobs-monorepo/internal/ports/commands.go
Elshimy Ziad Magdy Taha 7bf35ccb6b refactor
2025-09-29 22:44:30 +05:00

16 lines
380 B
Go

package ports
import "github.com/jobs-scraper/internal/domain"
// CreateJobCommand represents the command to create a job
type CreateJobCommand struct {
Location string
Keywords string
FWT string
Provider domain.JobProvider
}
// JobCommandHandler defines the interface for handling job commands
type JobCommandHandler interface {
Handle(cmd CreateJobCommand) error
}