mode adding to workflow

This commit is contained in:
mr 2024-08-13 09:56:09 +02:00
parent e71bd3544f
commit e0eb8cd4ad

View File

@ -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"`