组织数据读取权限完成

This commit is contained in:
XM-GO
2023-09-15 15:13:39 +08:00
parent b5ee2a54b9
commit 6630ebdb02
37 changed files with 717 additions and 59 deletions

View File

@@ -38,6 +38,7 @@ type JobCore struct {
Name string
JobId string
OrgId int64
Owner string
EntryId int
CronExpression string // 任务表达式
MisfirePolicy string
@@ -55,6 +56,7 @@ func (e *ExecJob) Run() {
jobLog := logEntity.JobLog{Name: e.Name, EntryId: e.EntryId, TargetInvoke: e.InvokeTarget, Status: "0"}
jobLog.Id = kgo.KStr.Uniqid("")
jobLog.OrgId = e.OrgId
jobLog.Owner = e.Owner
var obj = jobList[e.InvokeTarget]
err := CallExec(obj.(JobsExec), e.Args, e.Content)