feat: update auto job (#191)

This commit is contained in:
zhangwenjian
2020-08-12 18:21:04 +08:00
parent 4dbacc7a16
commit 509709f3fb
6 changed files with 103 additions and 48 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func StartJob(c *gin.Context) {
data.JobId, _ = tools.StringToInt(c.Param("jobId"))
result, err := data.Get()
tools.HasError(err, "", 500)
j := jobs.ExecJob{}
j := &jobs.ExecJob{}
j.InvokeTarget = result.InvokeTarget
j.CronExpression = result.CronExpression
j.JobId = result.JobId