|
|
@@ -49,6 +49,7 @@ type JobSetInfo struct { |
|
|
|
|
|
|
|
|
type JobInfo interface { |
|
|
type JobInfo interface { |
|
|
GetLocalJobID() string |
|
|
GetLocalJobID() string |
|
|
|
|
|
GetTargetLocalJobID() []string |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var JobInfoTypeUnion = types.NewTypeUnion[JobInfo]( |
|
|
var JobInfoTypeUnion = types.NewTypeUnion[JobInfo]( |
|
|
@@ -65,16 +66,16 @@ var JobInfoTypeUnion = types.NewTypeUnion[JobInfo]( |
|
|
var _ = serder.UseTypeUnionInternallyTagged(&JobInfoTypeUnion, "type") |
|
|
var _ = serder.UseTypeUnionInternallyTagged(&JobInfoTypeUnion, "type") |
|
|
|
|
|
|
|
|
type JobInfoBase struct { |
|
|
type JobInfoBase struct { |
|
|
LocalJobID string `json:"localJobID"` |
|
|
|
|
|
TargetLocalJobID string `json:"targetLocalJobID"` |
|
|
|
|
|
|
|
|
LocalJobID string `json:"localJobID"` |
|
|
|
|
|
TargetLocalJobIDs []string `json:"targetLocalJobIDs"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (i *JobInfoBase) GetLocalJobID() string { |
|
|
func (i *JobInfoBase) GetLocalJobID() string { |
|
|
return i.LocalJobID |
|
|
return i.LocalJobID |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (i *JobInfoBase) GetTargetLocalJobID() string { |
|
|
|
|
|
return i.TargetLocalJobID |
|
|
|
|
|
|
|
|
func (i *JobInfoBase) GetTargetLocalJobID() []string { |
|
|
|
|
|
return i.TargetLocalJobIDs |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type NormalJobInfo struct { |
|
|
type NormalJobInfo struct { |
|
|
|