mirror of
https://github.com/samuelncui/acp.git
synced 2025-12-23 05:05:15 +00:00
feat: add consts
This commit is contained in:
16
job.go
16
job.go
@@ -16,15 +16,21 @@ const (
|
||||
jobStatusCopying
|
||||
jobStatusFinishing
|
||||
jobStatusFinished
|
||||
|
||||
JobStatusPending = "pending"
|
||||
JobStatusPreparing = "preparing"
|
||||
JobStatusCopying = "copying"
|
||||
JobStatusFinishing = "finishing"
|
||||
JobStatusFinished = "finished"
|
||||
)
|
||||
|
||||
var (
|
||||
statusMapping = map[jobStatus]string{
|
||||
jobStatusPending: "pending",
|
||||
jobStatusPreparing: "preparing",
|
||||
jobStatusCopying: "copying",
|
||||
jobStatusFinishing: "finishing",
|
||||
jobStatusFinished: "finished",
|
||||
jobStatusPending: JobStatusPending,
|
||||
jobStatusPreparing: JobStatusPreparing,
|
||||
jobStatusCopying: JobStatusCopying,
|
||||
jobStatusFinishing: JobStatusFinishing,
|
||||
jobStatusFinished: JobStatusFinished,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user