mode adding to workflow
This commit is contained in:
parent
e71bd3544f
commit
e0eb8cd4ad
@ -2,8 +2,17 @@ package oclib
|
||||
|
||||
import "time"
|
||||
|
||||
// WorkflowSchedule is a struct that contains the scheduling information of a workflow
|
||||
type ScheduleMode int
|
||||
|
||||
const (
|
||||
TASK ScheduleMode = iota
|
||||
SERVICE
|
||||
)
|
||||
|
||||
type WorkflowSchedule struct {
|
||||
Id string `json:"id"`
|
||||
Mode int64 `json:"mode" bson:"mode" validate:"required"`
|
||||
Name string `json:"name" bson:"name" validate:"required"`
|
||||
Start *time.Time `json:"start" bson:"start" validate:"required,ltfield=End"`
|
||||
End *time.Time `json:"end,omitempty" bson:"end,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user