From 6f6cb7c4893621432879b014ba386cbd1fb6da0d Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 25 Jul 2024 11:52:05 +0200 Subject: [PATCH] resource schedule init --- models/resources/workflow/workflow_schedule.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/models/resources/workflow/workflow_schedule.go b/models/resources/workflow/workflow_schedule.go index 7d5d5a1..ead65f3 100644 --- a/models/resources/workflow/workflow_schedule.go +++ b/models/resources/workflow/workflow_schedule.go @@ -3,13 +3,14 @@ package oclib import "time" type WorkflowSchedule struct { - Id string `json:"id"` - Start time.Time - End time.Time - Cron string + Id string `json:"id" bson:"id"` + Name string `json:"name" bson:"name"` + Start time.Time `json:"start" bson:"start"` + End time.Time `json:"end" bson:"end"` + Cron string `json:"cron" bson:"cron"` } -func (ws *WorkflowSchedule) GetAllDates() (timetable []time.Time){ +func (ws *WorkflowSchedule) GetAllDates() (timetable []time.Time) { // Return all the execution time generated by the Cron return -} \ No newline at end of file +}