jobs-monorepo/internal/domain/job.go
2025-10-12 22:56:20 +05:00

42 lines
722 B
Go

package domain
import "time"
// JobProvider represents different job board providers
type JobProvider int
type JobStatus int
const (
LinkedIn JobProvider = iota
Indeed
Glassdoor
Bayt
TokyoDev
JapanDev
)
const (
JobStatusCreated JobStatus = iota
JobStatusAnalyzed
JobStatusError
)
type Job struct {
ID int64
Title string
Company string
CompanyLink string
Location string
JobLink string
Provider JobProvider
JobPostTime *time.Time
Status JobStatus
}
type SearchQuery struct {
Keywords string `json:"keywords"`
Location string `json:"location"`
NumPages int `json:"numPages"`
FWT string `json:"f_WT"` // Work type filter (1=onsite, 2=remote, 3=hybrid)
}