Skip to content

Commit

Permalink
Merge pull request #19 from mittwald/enhancement/simplify_AdminJobReq
Browse files Browse the repository at this point in the history
simplify AdminJobReq type
  • Loading branch information
martin-helmich authored May 15, 2020
2 parents ec64667 + eed9551 commit 70a6cf5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions system_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ const (
ScheduleTypeNone = "None"
)

// AdminJobReq holds request information for admin job
// AdminJobReq holds request information for an admin job
type AdminJobReq struct {
AdminJobSchedule
Name string `json:"name"`
Status string `json:"status"`
ID int64 `json:"id"`
Parameters map[string]interface{} `json:"parameters"`
}

// AdminJobSchedule holds the information of an admin job schedule
type AdminJobSchedule struct {
Schedule *ScheduleParam `json:"schedule"`
AdminJobSchedule *ScheduleParam `json:"schedule"`
Name string `json:"name"`
Status string `json:"status"`
ID int64 `json:"id"`
Parameters map[string]interface{} `json:"parameters"`
}

// ScheduleParam defines the parameters of a schedule trigger
Expand Down

0 comments on commit 70a6cf5

Please sign in to comment.